.class public final Lorg/zeam/Launcher;
.super Landroid/app/Activity;
.source "Launcher.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/view/View$OnLongClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lorg/zeam/Launcher$AddDialog;,
        Lorg/zeam/Launcher$AppWidgetResetObserver;,
        Lorg/zeam/Launcher$ApplicationsIntentReceiver;,
        Lorg/zeam/Launcher$CloseSystemDialogsIntentReceiver;,
        Lorg/zeam/Launcher$DesktopBinder;,
        Lorg/zeam/Launcher$FavoritesChangeObserver;,
        Lorg/zeam/Launcher$LauncherDialog;,
        Lorg/zeam/Launcher$LocaleConfiguration;,
        Lorg/zeam/Launcher$RenameFolderDialog;,
        Lorg/zeam/Launcher$WallpaperIntentReceiver;
    }
.end annotation


# static fields
.field static final APPWIDGET_HOST_ID:I = 0x400

.field static final DEFAULT_SCREEN:I = 0x2

.field private static final DIALOG_ADD:I = 0x2

.field private static final DIALOG_LAUNCHER:I = 0x1

.field static final DIALOG_RENAME_FOLDER:I = 0x3

.field static final EXTRA_CUSTOM_WIDGET:Ljava/lang/String; = "custom_widget"

.field static final EXTRA_SHORTCUT_DUPLICATE:Ljava/lang/String; = "duplicate"

.field static final LOGD:Z = true

.field static final LOG_TAG:Ljava/lang/String; = null

.field private static final MENU_ADD:I = 0x2

.field private static final MENU_APPLICATIONS:I = 0x5

.field private static final MENU_GROUP_ADD:I = 0x1

.field private static final MENU_GROUP_APPLICATIONS:I = 0x3

.field private static final MENU_GROUP_WORKSPACE:I = 0x2

.field private static final MENU_MANAGE_APPS:I = 0x8

.field private static final MENU_PREFERENCES:I = 0x6

.field private static final MENU_SEARCH:I = 0x4

.field private static final MENU_SETTINGS:I = 0x7

.field private static final MENU_UNINSTALL_APPS:I = 0x9

.field private static final MENU_WALLPAPER_SETTINGS:I = 0x3

.field private static final PREFERENCES:Ljava/lang/String; = "launcher.preferences"

.field private static final PROFILE_ROTATE:Z = false

.field private static final PROFILE_STARTUP:Z = false

.field private static final REQUEST_CREATE_APPWIDGET:I = 0x5

.field private static final REQUEST_CREATE_LIVE_FOLDER:I = 0x4

.field private static final REQUEST_CREATE_SHORTCUT:I = 0x1

.field private static final REQUEST_PICK_APPLICATION:I = 0x6

.field private static final REQUEST_PICK_APPWIDGET:I = 0x9

.field private static final REQUEST_PICK_LIVE_FOLDER:I = 0x8

.field private static final REQUEST_PICK_SHORTCUT:I = 0x7

.field private static final RUNTIME_STATE_ALL_APPS_FOLDER:Ljava/lang/String; = "launcher.all_apps_folder"

.field private static final RUNTIME_STATE_CURRENT_SCREEN:Ljava/lang/String; = "launcher.current_screen"

.field private static final RUNTIME_STATE_PENDING_ADD_CELL_X:Ljava/lang/String; = "launcher.add_cellX"

.field private static final RUNTIME_STATE_PENDING_ADD_CELL_Y:Ljava/lang/String; = "launcher.add_cellY"

.field private static final RUNTIME_STATE_PENDING_ADD_COUNT_X:Ljava/lang/String; = "launcher.add_countX"

.field private static final RUNTIME_STATE_PENDING_ADD_COUNT_Y:Ljava/lang/String; = "launcher.add_countY"

.field private static final RUNTIME_STATE_PENDING_ADD_OCCUPIED_CELLS:Ljava/lang/String; = "launcher.add_occupied_cells"

.field private static final RUNTIME_STATE_PENDING_ADD_SCREEN:Ljava/lang/String; = "launcher.add_screen"

.field private static final RUNTIME_STATE_PENDING_ADD_SPAN_X:Ljava/lang/String; = "launcher.add_spanX"

.field private static final RUNTIME_STATE_PENDING_ADD_SPAN_Y:Ljava/lang/String; = "launcher.add_spanY"

.field private static final RUNTIME_STATE_PENDING_FOLDER_RENAME:Ljava/lang/String; = "launcher.rename_folder"

.field private static final RUNTIME_STATE_PENDING_FOLDER_RENAME_ID:Ljava/lang/String; = "launcher.rename_folder_id"

.field private static final RUNTIME_STATE_USER_FOLDERS:Ljava/lang/String; = "launcher.user_folder"

.field static final SCREEN_COUNT:I = 0x5

.field static final SEARCH_WIDGET:Ljava/lang/String; = "search_widget"

.field static final WALLPAPER_SCREEN_SPAN:I = 0x2

.field private static final sLauncherModel:Lorg/zeam/LauncherModel;

.field private static final sLock:Ljava/lang/Object;

.field static sRestart:Z

.field static sRestartLoaders:Z

.field private static sScreen:I

.field private static sWallpaperReceiver:Lorg/zeam/Launcher$WallpaperIntentReceiver;


# instance fields
.field private mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

.field private mAllowAppsGridAnimations:Z

.field private mAppWidgetHost:Lorg/zeam/LauncherAppWidgetHost;

.field private mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

.field private mApplicationsGridOpen:Z

.field private final mApplicationsReceiver:Landroid/content/BroadcastReceiver;

.field private mApplicationsView:Lorg/zeam/ApplicationsView;

.field private mBinder:Lorg/zeam/Launcher$DesktopBinder;

.field private mBootstrap:Z

.field private final mCellCoordinates:[I

.field private final mCloseSystemDialogsReceiver:Landroid/content/BroadcastReceiver;

.field private mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

.field private mDesktopLocked:Z

.field private mDestroyed:Z

.field private mDisplayMetrics:Landroid/util/DisplayMetrics;

.field private mDock:Lorg/zeam/Dock;

.field private mDragLayer:Lorg/zeam/DragLayer;

.field private mFolderInfo:Lorg/zeam/FolderInfo;

.field private mFullScreenPreviews:Z

.field private mFullscreen:Z

.field private mHomeButton:Landroid/widget/ImageButton;

.field private mInflater:Landroid/view/LayoutInflater;

.field private mIsNewIntent:Z

.field private mLocaleChanged:Z

.field private mMenuAddInfo:Lorg/zeam/CellLayout$CellInfo;

.field private final mObserver:Landroid/database/ContentObserver;

.field private mPreviewsShowing:Z

.field private mRestoring:Z

.field private mRotation:I

.field private mSavedInstanceState:Landroid/os/Bundle;

.field private mSavedState:Landroid/os/Bundle;

.field private mScreenIndicator:Lorg/zeam/ScreenIndicator;

.field private mSetPersistent:Z

.field private mShouldRestart:Z

.field private mWaitingForResult:Z

.field private final mWidgetObserver:Landroid/database/ContentObserver;

.field private mWorkspace:Lorg/zeam/Workspace;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 87
    const-class v0, Lorg/zeam/Launcher;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lorg/zeam/Launcher;->LOG_TAG:Ljava/lang/String;

    .line 142
    new-instance v0, Lorg/zeam/LauncherModel;

    invoke-direct {v0}, Lorg/zeam/LauncherModel;-><init>()V

    sput-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    .line 143
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    sput-object v0, Lorg/zeam/Launcher;->sLock:Ljava/lang/Object;

    .line 144
    const/4 v0, 0x2

    sput v0, Lorg/zeam/Launcher;->sScreen:I

    .line 197
    sput-boolean v1, Lorg/zeam/Launcher;->sRestartLoaders:Z

    .line 198
    sput-boolean v1, Lorg/zeam/Launcher;->sRestart:Z

    .line 85
    return-void
.end method

.method public constructor <init>()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 85
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 146
    new-instance v0, Lorg/zeam/Launcher$CloseSystemDialogsIntentReceiver;

    invoke-direct {v0, p0, v3}, Lorg/zeam/Launcher$CloseSystemDialogsIntentReceiver;-><init>(Lorg/zeam/Launcher;Lorg/zeam/Launcher$CloseSystemDialogsIntentReceiver;)V

    iput-object v0, p0, Lorg/zeam/Launcher;->mCloseSystemDialogsReceiver:Landroid/content/BroadcastReceiver;

    .line 147
    new-instance v0, Lorg/zeam/Launcher$ApplicationsIntentReceiver;

    invoke-direct {v0, p0, v3}, Lorg/zeam/Launcher$ApplicationsIntentReceiver;-><init>(Lorg/zeam/Launcher;Lorg/zeam/Launcher$ApplicationsIntentReceiver;)V

    iput-object v0, p0, Lorg/zeam/Launcher;->mApplicationsReceiver:Landroid/content/BroadcastReceiver;

    .line 148
    new-instance v0, Lorg/zeam/Launcher$AppWidgetResetObserver;

    invoke-direct {v0, p0}, Lorg/zeam/Launcher$AppWidgetResetObserver;-><init>(Lorg/zeam/Launcher;)V

    iput-object v0, p0, Lorg/zeam/Launcher;->mWidgetObserver:Landroid/database/ContentObserver;

    .line 149
    new-instance v0, Lorg/zeam/Launcher$FavoritesChangeObserver;

    invoke-direct {v0, p0}, Lorg/zeam/Launcher$FavoritesChangeObserver;-><init>(Lorg/zeam/Launcher;)V

    iput-object v0, p0, Lorg/zeam/Launcher;->mObserver:Landroid/database/ContentObserver;

    .line 165
    const/4 v0, 0x2

    new-array v0, v0, [I

    iput-object v0, p0, Lorg/zeam/Launcher;->mCellCoordinates:[I

    .line 168
    iput-boolean v2, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    .line 176
    iput-object v3, p0, Lorg/zeam/Launcher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    .line 187
    iput-boolean v1, p0, Lorg/zeam/Launcher;->mBootstrap:Z

    .line 188
    iput-boolean v1, p0, Lorg/zeam/Launcher;->mPreviewsShowing:Z

    .line 189
    iput-boolean v2, p0, Lorg/zeam/Launcher;->mFullScreenPreviews:Z

    .line 190
    iput-boolean v1, p0, Lorg/zeam/Launcher;->mApplicationsGridOpen:Z

    .line 191
    iput-boolean v2, p0, Lorg/zeam/Launcher;->mAllowAppsGridAnimations:Z

    .line 195
    iput-boolean v1, p0, Lorg/zeam/Launcher;->mShouldRestart:Z

    .line 196
    iput-boolean v1, p0, Lorg/zeam/Launcher;->mSetPersistent:Z

    .line 85
    return-void
.end method

.method private acceptFilter()Z
    .locals 1

    .prologue
    .line 522
    const-string v0, "input_method"

    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/view/inputmethod/InputMethodManager;

    invoke-virtual {p0}, Landroid/view/inputmethod/InputMethodManager;->isFullscreenMode()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method static synthetic access$0(Lorg/zeam/Launcher;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 181
    iput-boolean p1, p0, Lorg/zeam/Launcher;->mWaitingForResult:Z

    return-void
.end method

.method static synthetic access$1()Lorg/zeam/LauncherModel;
    .locals 1

    .prologue
    .line 142
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    return-object v0
.end method

.method static synthetic access$10(Lorg/zeam/Launcher;)V
    .locals 0
    .parameter

    .prologue
    .line 2556
    invoke-direct {p0}, Lorg/zeam/Launcher;->startPreferences()V

    return-void
.end method

.method static synthetic access$11(Lorg/zeam/Launcher;II)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 2115
    invoke-direct {p0, p1, p2}, Lorg/zeam/Launcher;->pickShortcut(II)V

    return-void
.end method

.method static synthetic access$12(Lorg/zeam/Launcher;)Lorg/zeam/LauncherAppWidgetHost;
    .locals 1
    .parameter

    .prologue
    .line 159
    iget-object v0, p0, Lorg/zeam/Launcher;->mAppWidgetHost:Lorg/zeam/LauncherAppWidgetHost;

    return-object v0
.end method

.method static synthetic access$13(Lorg/zeam/Launcher;)V
    .locals 0
    .parameter

    .prologue
    .line 839
    invoke-direct {p0}, Lorg/zeam/Launcher;->addApplicationsGridItem()V

    return-void
.end method

.method static synthetic access$14(Lorg/zeam/Launcher;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1320
    invoke-direct {p0, p1}, Lorg/zeam/Launcher;->removeShortcutsForPackage(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic access$15(Lorg/zeam/Launcher;)Lorg/zeam/ApplicationsView;
    .locals 1
    .parameter

    .prologue
    .line 171
    iget-object v0, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    return-object v0
.end method

.method static synthetic access$16(Lorg/zeam/Launcher;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1328
    invoke-direct {p0, p1}, Lorg/zeam/Launcher;->updateShortcutsForPackage(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic access$17(Lorg/zeam/Launcher;)V
    .locals 0
    .parameter

    .prologue
    .line 1657
    invoke-direct {p0}, Lorg/zeam/Launcher;->onFavoritesChanged()V

    return-void
.end method

.method static synthetic access$18(Lorg/zeam/Launcher;)V
    .locals 0
    .parameter

    .prologue
    .line 1663
    invoke-direct {p0}, Lorg/zeam/Launcher;->onAppWidgetReset()V

    return-void
.end method

.method static synthetic access$19(Lorg/zeam/Launcher;Lorg/zeam/Launcher$DesktopBinder;Ljava/util/ArrayList;II)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1779
    invoke-direct {p0, p1, p2, p3, p4}, Lorg/zeam/Launcher;->bindItems(Lorg/zeam/Launcher$DesktopBinder;Ljava/util/ArrayList;II)V

    return-void
.end method

.method static synthetic access$2(Lorg/zeam/Launcher;)Lorg/zeam/FolderInfo;
    .locals 1
    .parameter

    .prologue
    .line 166
    iget-object v0, p0, Lorg/zeam/Launcher;->mFolderInfo:Lorg/zeam/FolderInfo;

    return-object v0
.end method

.method static synthetic access$20(Lorg/zeam/Launcher;Lorg/zeam/Launcher$DesktopBinder;Lorg/zeam/ApplicationsAdapter;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1893
    invoke-direct {p0, p1, p2}, Lorg/zeam/Launcher;->bindDrawer(Lorg/zeam/Launcher$DesktopBinder;Lorg/zeam/ApplicationsAdapter;)V

    return-void
.end method

.method static synthetic access$21(Lorg/zeam/Launcher;Lorg/zeam/Launcher$DesktopBinder;Ljava/util/LinkedList;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1897
    invoke-direct {p0, p1, p2}, Lorg/zeam/Launcher;->bindAppWidgets(Lorg/zeam/Launcher$DesktopBinder;Ljava/util/LinkedList;)V

    return-void
.end method

.method static synthetic access$22(Lorg/zeam/Launcher;Landroid/appwidget/AppWidgetProviderInfo;Lorg/zeam/CellLayout$CellInfo;[IIZ)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 2820
    invoke-direct/range {p0 .. p5}, Lorg/zeam/Launcher;->realAddWidget(Landroid/appwidget/AppWidgetProviderInfo;Lorg/zeam/CellLayout$CellInfo;[IIZ)V

    return-void
.end method

.method static synthetic access$23(Lorg/zeam/Launcher;)Lorg/zeam/Dock;
    .locals 1
    .parameter

    .prologue
    .line 170
    iget-object v0, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    return-object v0
.end method

.method static synthetic access$3(Lorg/zeam/Launcher;Lorg/zeam/FolderInfo;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 166
    iput-object p1, p0, Lorg/zeam/Launcher;->mFolderInfo:Lorg/zeam/FolderInfo;

    return-void
.end method

.method static synthetic access$4(Lorg/zeam/Launcher;)Z
    .locals 1
    .parameter

    .prologue
    .line 168
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    return v0
.end method

.method static synthetic access$5(Lorg/zeam/Launcher;)Lorg/zeam/Workspace;
    .locals 1
    .parameter

    .prologue
    .line 157
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    return-object v0
.end method

.method static synthetic access$6(Lorg/zeam/Launcher;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 168
    iput-boolean p1, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    return-void
.end method

.method static synthetic access$7(Lorg/zeam/Launcher;)Lorg/zeam/CellLayout$CellInfo;
    .locals 1
    .parameter

    .prologue
    .line 162
    iget-object v0, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    return-object v0
.end method

.method static synthetic access$8(Lorg/zeam/Launcher;Lorg/zeam/CellLayout$CellInfo;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 2101
    invoke-direct {p0, p1}, Lorg/zeam/Launcher;->showAddDialog(Lorg/zeam/CellLayout$CellInfo;)V

    return-void
.end method

.method static synthetic access$9(Lorg/zeam/Launcher;)V
    .locals 0
    .parameter

    .prologue
    .line 1540
    invoke-direct {p0}, Lorg/zeam/Launcher;->startWallpaperChooser()V

    return-void
.end method

.method private addApplicationsGridItem()V
    .locals 10

    .prologue
    .line 841
    iget-object v9, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    .line 842
    .local v9, cellInfo:Lorg/zeam/CellLayout$CellInfo;
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v0

    iput v0, v9, Lorg/zeam/CellLayout$CellInfo;->screen:I

    .line 843
    iget v0, v9, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_0

    iget v0, v9, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    const/4 v1, -0x1

    if-ne v0, v1, :cond_2

    .line 844
    :cond_0
    invoke-direct {p0, v9}, Lorg/zeam/Launcher;->findSingleSlot(Lorg/zeam/CellLayout$CellInfo;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 861
    :cond_1
    :goto_0
    return-void

    .line 848
    :cond_2
    new-instance v1, Lorg/zeam/ApplicationsGridItemInfo;

    invoke-direct {v1, p0}, Lorg/zeam/ApplicationsGridItemInfo;-><init>(Landroid/content/Context;)V

    .line 850
    .local v1, applicationsGridItemInfo:Lorg/zeam/ApplicationsGridItemInfo;
    const-wide/16 v2, -0x64

    .line 851
    iget v4, v9, Lorg/zeam/CellLayout$CellInfo;->screen:I

    iget v5, v9, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    iget v6, v9, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    const/4 v7, 0x0

    move-object v0, p0

    .line 849
    invoke-static/range {v0 .. v7}, Lorg/zeam/LauncherModel;->addItemToDatabase(Landroid/content/Context;Lorg/zeam/ItemInfo;JIIIZ)V

    .line 853
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mRestoring:Z

    if-nez v0, :cond_3

    .line 854
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0, v1}, Lorg/zeam/LauncherModel;->addDesktopItem(Lorg/zeam/ItemInfo;)V

    .line 855
    invoke-virtual {p0, v1}, Lorg/zeam/Launcher;->createApplicationsGridItemView(Lorg/zeam/ApplicationsGridItemInfo;)Landroid/view/View;

    move-result-object v3

    .line 856
    .local v3, view:Landroid/view/View;
    iget-object v2, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget v4, v9, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    iget v5, v9, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    const/4 v6, 0x1

    const/4 v7, 0x1

    const/4 v8, 0x0

    invoke-virtual/range {v2 .. v8}, Lorg/zeam/Workspace;->addInCurrentScreen(Landroid/view/View;IIIIZ)V

    goto :goto_0

    .line 858
    .end local v3           #view:Landroid/view/View;
    :cond_3
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0}, Lorg/zeam/LauncherModel;->isDesktopLoaded()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 859
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0, v1}, Lorg/zeam/LauncherModel;->addDesktopItem(Lorg/zeam/ItemInfo;)V

    goto :goto_0
.end method

.method static addLiveFolder(Landroid/content/Context;Landroid/content/Intent;Lorg/zeam/CellLayout$CellInfo;Z)Lorg/zeam/LiveFolderInfo;
    .locals 12
    .parameter "context"
    .parameter "data"
    .parameter "cellInfo"
    .parameter "notify"

    .prologue
    .line 1459
    const-string v1, "android.intent.extra.livefolder.BASE_INTENT"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v1

    check-cast v1, Landroid/content/Intent;

    .line 1460
    .local v1, baseIntent:Landroid/content/Intent;
    const-string v2, "android.intent.extra.livefolder.NAME"

    invoke-virtual {p1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 1462
    .local v7, name:Ljava/lang/String;
    const/4 v5, 0x0

    .line 1463
    .local v5, icon:Landroid/graphics/drawable/Drawable;
    const/4 v4, 0x0

    .line 1464
    .local v4, filtered:Z
    const/4 v2, 0x0

    .line 1466
    .local v2, iconResource:Landroid/content/Intent$ShortcutIconResource;
    const-string v3, "android.intent.extra.livefolder.ICON"

    invoke-virtual {p1, v3}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v3

    .line 1467
    .local v3, extra:Landroid/os/Parcelable;
    if-eqz v3, :cond_1

    instance-of v6, v3, Landroid/content/Intent$ShortcutIconResource;

    if-eqz v6, :cond_1

    .line 1469
    :try_start_0
    move-object v0, v3

    check-cast v0, Landroid/content/Intent$ShortcutIconResource;

    move-object v6, v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 1470
    .end local v2           #iconResource:Landroid/content/Intent$ShortcutIconResource;
    .local v6, iconResource:Landroid/content/Intent$ShortcutIconResource;
    :try_start_1
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    .line 1471
    .local v2, packageManager:Landroid/content/pm/PackageManager;
    iget-object v8, v6, Landroid/content/Intent$ShortcutIconResource;->packageName:Ljava/lang/String;

    invoke-virtual {v2, v8}, Landroid/content/pm/PackageManager;->getResourcesForApplication(Ljava/lang/String;)Landroid/content/res/Resources;

    move-result-object v8

    .line 1472
    .local v8, resources:Landroid/content/res/Resources;
    iget-object v2, v6, Landroid/content/Intent$ShortcutIconResource;->resourceName:Ljava/lang/String;

    .end local v2           #packageManager:Landroid/content/pm/PackageManager;
    const/4 v9, 0x0

    const/4 v10, 0x0

    invoke-virtual {v8, v2, v9, v10}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

    move-result v2

    .line 1473
    .local v2, id:I
    invoke-virtual {v8, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move-result-object v2

    .end local v5           #icon:Landroid/graphics/drawable/Drawable;
    .local v2, icon:Landroid/graphics/drawable/Drawable;
    move-object v5, v6

    .line 1478
    .end local v3           #extra:Landroid/os/Parcelable;
    .end local v6           #iconResource:Landroid/content/Intent$ShortcutIconResource;
    .end local v8           #resources:Landroid/content/res/Resources;
    .local v5, iconResource:Landroid/content/Intent$ShortcutIconResource;
    :goto_0
    if-nez v2, :cond_0

    .line 1479
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    .end local v2           #icon:Landroid/graphics/drawable/Drawable;
    const v3, 0x7f020011

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    .restart local v2       #icon:Landroid/graphics/drawable/Drawable;
    move-object v3, v2

    .line 1482
    .end local v2           #icon:Landroid/graphics/drawable/Drawable;
    .local v3, icon:Landroid/graphics/drawable/Drawable;
    :goto_1
    new-instance v2, Lorg/zeam/LiveFolderInfo;

    invoke-direct {v2}, Lorg/zeam/LiveFolderInfo;-><init>()V

    .line 1483
    .local v2, liveFolderInfo:Lorg/zeam/LiveFolderInfo;
    iput-object v3, v2, Lorg/zeam/LiveFolderInfo;->icon:Landroid/graphics/drawable/Drawable;

    .line 1484
    iput-boolean v4, v2, Lorg/zeam/LiveFolderInfo;->filtered:Z

    .line 1485
    iput-object v7, v2, Lorg/zeam/LiveFolderInfo;->title:Ljava/lang/CharSequence;

    .line 1486
    iput-object v5, v2, Lorg/zeam/LiveFolderInfo;->iconResource:Landroid/content/Intent$ShortcutIconResource;

    .line 1487
    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v3

    .end local v3           #icon:Landroid/graphics/drawable/Drawable;
    iput-object v3, v2, Lorg/zeam/LiveFolderInfo;->uri:Landroid/net/Uri;

    .line 1488
    iput-object v1, v2, Lorg/zeam/LiveFolderInfo;->baseIntent:Landroid/content/Intent;

    .line 1489
    const-string v1, "android.intent.extra.livefolder.DISPLAY_MODE"

    .end local v1           #baseIntent:Landroid/content/Intent;
    const/4 v3, 0x1

    invoke-virtual {p1, v1, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    .end local p1
    iput p1, v2, Lorg/zeam/LiveFolderInfo;->displayMode:I

    .line 1491
    const-wide/16 v3, -0x64

    iget v5, p2, Lorg/zeam/CellLayout$CellInfo;->screen:I

    .end local v5           #iconResource:Landroid/content/Intent$ShortcutIconResource;
    iget v6, p2, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    iget v7, p2, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    .end local v7           #name:Ljava/lang/String;
    move-object v1, p0

    move v8, p3

    invoke-static/range {v1 .. v8}, Lorg/zeam/LauncherModel;->addItemToDatabase(Landroid/content/Context;Lorg/zeam/ItemInfo;JIIIZ)V

    .line 1493
    sget-object p0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    .end local p0
    invoke-virtual {p0, v2}, Lorg/zeam/LauncherModel;->addFolder(Lorg/zeam/FolderInfo;)V

    .line 1494
    return-object v2

    .line 1474
    .restart local v1       #baseIntent:Landroid/content/Intent;
    .local v2, iconResource:Landroid/content/Intent$ShortcutIconResource;
    .local v3, extra:Landroid/os/Parcelable;
    .local v5, icon:Landroid/graphics/drawable/Drawable;
    .restart local v7       #name:Ljava/lang/String;
    .restart local p0
    .restart local p1
    :catch_0
    move-exception v6

    move-object v11, v6

    move-object v6, v2

    .end local v2           #iconResource:Landroid/content/Intent$ShortcutIconResource;
    .restart local v6       #iconResource:Landroid/content/Intent$ShortcutIconResource;
    move-object v2, v11

    .line 1475
    .local v2, e:Ljava/lang/Exception;
    :goto_2
    sget-object v2, Lorg/zeam/Launcher;->LOG_TAG:Ljava/lang/String;

    .end local v2           #e:Ljava/lang/Exception;
    new-instance v8, Ljava/lang/StringBuilder;

    const-string v9, "Could not load live folder icon: "

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    .end local v3           #extra:Landroid/os/Parcelable;
    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    move-object v2, v5

    .end local v5           #icon:Landroid/graphics/drawable/Drawable;
    .local v2, icon:Landroid/graphics/drawable/Drawable;
    move-object v5, v6

    .end local v6           #iconResource:Landroid/content/Intent$ShortcutIconResource;
    .local v5, iconResource:Landroid/content/Intent$ShortcutIconResource;
    goto :goto_0

    .line 1474
    .end local v2           #icon:Landroid/graphics/drawable/Drawable;
    .restart local v3       #extra:Landroid/os/Parcelable;
    .local v5, icon:Landroid/graphics/drawable/Drawable;
    .restart local v6       #iconResource:Landroid/content/Intent$ShortcutIconResource;
    :catch_1
    move-exception v2

    goto :goto_2

    .end local v3           #extra:Landroid/os/Parcelable;
    .end local v6           #iconResource:Landroid/content/Intent$ShortcutIconResource;
    .restart local v2       #icon:Landroid/graphics/drawable/Drawable;
    .local v5, iconResource:Landroid/content/Intent$ShortcutIconResource;
    :cond_0
    move-object v3, v2

    .end local v2           #icon:Landroid/graphics/drawable/Drawable;
    .local v3, icon:Landroid/graphics/drawable/Drawable;
    goto :goto_1

    .local v2, iconResource:Landroid/content/Intent$ShortcutIconResource;
    .local v3, extra:Landroid/os/Parcelable;
    .local v5, icon:Landroid/graphics/drawable/Drawable;
    :cond_1
    move-object v11, v2

    .end local v2           #iconResource:Landroid/content/Intent$ShortcutIconResource;
    .local v11, iconResource:Landroid/content/Intent$ShortcutIconResource;
    move-object v2, v5

    .end local v5           #icon:Landroid/graphics/drawable/Drawable;
    .local v2, icon:Landroid/graphics/drawable/Drawable;
    move-object v5, v11

    .end local v11           #iconResource:Landroid/content/Intent$ShortcutIconResource;
    .local v5, iconResource:Landroid/content/Intent$ShortcutIconResource;
    goto :goto_0
.end method

.method static addShortcut(Landroid/content/Context;Landroid/content/Intent;Lorg/zeam/CellLayout$CellInfo;Z)Lorg/zeam/ApplicationItemInfo;
    .locals 8
    .parameter "context"
    .parameter "data"
    .parameter "cellInfo"
    .parameter "notify"

    .prologue
    .line 953
    invoke-static {p0, p1}, Lorg/zeam/Launcher;->infoFromShortcutIntent(Landroid/content/Context;Landroid/content/Intent;)Lorg/zeam/ApplicationItemInfo;

    move-result-object v1

    .line 955
    .local v1, info:Lorg/zeam/ApplicationItemInfo;
    const-wide/16 v2, -0x64

    iget v4, p2, Lorg/zeam/CellLayout$CellInfo;->screen:I

    iget v5, p2, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    iget v6, p2, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    move-object v0, p0

    move v7, p3

    invoke-static/range {v0 .. v7}, Lorg/zeam/LauncherModel;->addItemToDatabase(Landroid/content/Context;Lorg/zeam/ItemInfo;JIIIZ)V

    .line 957
    return-object v1
.end method

.method private bindAppWidgets(Lorg/zeam/Launcher$DesktopBinder;Ljava/util/LinkedList;)V
    .locals 12
    .parameter "binder"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/zeam/Launcher$DesktopBinder;",
            "Ljava/util/LinkedList",
            "<",
            "Lorg/zeam/LauncherAppWidgetInfo;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 1899
    .local p2, appWidgets:Ljava/util/LinkedList;,"Ljava/util/LinkedList<Lorg/zeam/LauncherAppWidgetInfo;>;"
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    .line 1900
    .local v0, workspace:Lorg/zeam/Workspace;
    iget-boolean v10, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    .line 1902
    .local v10, desktopLocked:Z
    invoke-virtual {p2}, Ljava/util/LinkedList;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_0

    .line 1904
    invoke-virtual {p2}, Ljava/util/LinkedList;->removeFirst()Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Lorg/zeam/LauncherAppWidgetInfo;

    .line 1905
    .local v11, launcherAppWidgetInfo:Lorg/zeam/LauncherAppWidgetInfo;
    iget v8, v11, Lorg/zeam/LauncherAppWidgetInfo;->appWidgetId:I

    .line 1906
    .local v8, appWidgetId:I
    iget-object v1, p0, Lorg/zeam/Launcher;->mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

    invoke-virtual {v1, v8}, Landroid/appwidget/AppWidgetManager;->getAppWidgetInfo(I)Landroid/appwidget/AppWidgetProviderInfo;

    move-result-object v9

    .line 1907
    .local v9, appWidgetInfo:Landroid/appwidget/AppWidgetProviderInfo;
    iget-object v1, p0, Lorg/zeam/Launcher;->mAppWidgetHost:Lorg/zeam/LauncherAppWidgetHost;

    invoke-virtual {v1, p0, v8, v9}, Lorg/zeam/LauncherAppWidgetHost;->createView(Landroid/content/Context;ILandroid/appwidget/AppWidgetProviderInfo;)Landroid/appwidget/AppWidgetHostView;

    move-result-object v1

    iput-object v1, v11, Lorg/zeam/LauncherAppWidgetInfo;->hostView:Landroid/appwidget/AppWidgetHostView;

    .line 1910
    sget-object v1, Lorg/zeam/Launcher;->LOG_TAG:Ljava/lang/String;

    const-string v2, "about to setAppWidget for id=%d, info=%s"

    const/4 v3, 0x2

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x1

    aput-object v9, v3, v4

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1912
    iget-object v1, v11, Lorg/zeam/LauncherAppWidgetInfo;->hostView:Landroid/appwidget/AppWidgetHostView;

    invoke-virtual {v1, v8, v9}, Landroid/appwidget/AppWidgetHostView;->setAppWidget(ILandroid/appwidget/AppWidgetProviderInfo;)V

    .line 1913
    iget-object v1, v11, Lorg/zeam/LauncherAppWidgetInfo;->hostView:Landroid/appwidget/AppWidgetHostView;

    invoke-virtual {v1, v11}, Landroid/appwidget/AppWidgetHostView;->setTag(Ljava/lang/Object;)V

    .line 1915
    iget-object v1, v11, Lorg/zeam/LauncherAppWidgetInfo;->hostView:Landroid/appwidget/AppWidgetHostView;

    iget v2, v11, Lorg/zeam/LauncherAppWidgetInfo;->screen:I

    iget v3, v11, Lorg/zeam/LauncherAppWidgetInfo;->cellX:I

    iget v4, v11, Lorg/zeam/LauncherAppWidgetInfo;->cellY:I

    iget v5, v11, Lorg/zeam/LauncherAppWidgetInfo;->spanX:I

    .line 1916
    iget v6, v11, Lorg/zeam/LauncherAppWidgetInfo;->spanY:I

    if-eqz v10, :cond_1

    const/4 v7, 0x0

    .line 1915
    :goto_0
    invoke-virtual/range {v0 .. v7}, Lorg/zeam/Workspace;->addInScreen(Landroid/view/View;IIIIIZ)V

    .line 1918
    invoke-virtual {v0}, Lorg/zeam/Workspace;->requestLayout()V

    .line 1921
    .end local v8           #appWidgetId:I
    .end local v9           #appWidgetInfo:Landroid/appwidget/AppWidgetProviderInfo;
    .end local v11           #launcherAppWidgetInfo:Lorg/zeam/LauncherAppWidgetInfo;
    :cond_0
    invoke-virtual {p2}, Ljava/util/LinkedList;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 1928
    :goto_1
    return-void

    .line 1916
    .restart local v8       #appWidgetId:I
    .restart local v9       #appWidgetInfo:Landroid/appwidget/AppWidgetProviderInfo;
    .restart local v11       #launcherAppWidgetInfo:Lorg/zeam/LauncherAppWidgetInfo;
    :cond_1
    const/4 v7, 0x1

    goto :goto_0

    .line 1926
    .end local v8           #appWidgetId:I
    .end local v9           #appWidgetInfo:Landroid/appwidget/AppWidgetProviderInfo;
    .end local v11           #launcherAppWidgetInfo:Lorg/zeam/LauncherAppWidgetInfo;
    :cond_2
    const/4 v1, 0x2

    invoke-virtual {p1, v1}, Lorg/zeam/Launcher$DesktopBinder;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    invoke-virtual {v1}, Landroid/os/Message;->sendToTarget()V

    goto :goto_1
.end method

.method private bindDesktopItems(Ljava/util/ArrayList;Ljava/util/ArrayList;)V
    .locals 6
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lorg/zeam/ItemInfo;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lorg/zeam/LauncherAppWidgetInfo;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 1757
    .local p1, shortcuts:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lorg/zeam/ItemInfo;>;"
    .local p2, appWidgets:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lorg/zeam/LauncherAppWidgetInfo;>;"
    if-eqz p1, :cond_0

    if-nez p2, :cond_1

    .line 1777
    :cond_0
    :goto_0
    return-void

    .line 1763
    :cond_1
    iget-object v3, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    .line 1764
    .local v3, workspace:Lorg/zeam/Workspace;
    invoke-virtual {v3}, Lorg/zeam/Workspace;->getChildCount()I

    move-result v0

    .line 1765
    .local v0, count:I
    const/4 v2, 0x0

    .local v2, i:I
    :goto_1
    if-lt v2, v0, :cond_3

    .line 1769
    iget-object v4, p0, Lorg/zeam/Launcher;->mDragLayer:Lorg/zeam/DragLayer;

    const v5, 0x7f06001b

    invoke-virtual {v4, v5}, Lorg/zeam/DragLayer;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lorg/zeam/Dock;

    .line 1770
    .local v1, dock:Lorg/zeam/Dock;
    invoke-virtual {v1}, Lorg/zeam/Dock;->removeAllViewsInLayout()V

    .line 1772
    iget-object v4, p0, Lorg/zeam/Launcher;->mBinder:Lorg/zeam/Launcher$DesktopBinder;

    if-eqz v4, :cond_2

    .line 1773
    iget-object v4, p0, Lorg/zeam/Launcher;->mBinder:Lorg/zeam/Launcher$DesktopBinder;

    const/4 v5, 0x1

    iput-boolean v5, v4, Lorg/zeam/Launcher$DesktopBinder;->mTerminate:Z

    .line 1775
    :cond_2
    new-instance v4, Lorg/zeam/Launcher$DesktopBinder;

    invoke-direct {v4, p0, p1, p2}, Lorg/zeam/Launcher$DesktopBinder;-><init>(Lorg/zeam/Launcher;Ljava/util/ArrayList;Ljava/util/ArrayList;)V

    iput-object v4, p0, Lorg/zeam/Launcher;->mBinder:Lorg/zeam/Launcher$DesktopBinder;

    .line 1776
    iget-object v4, p0, Lorg/zeam/Launcher;->mBinder:Lorg/zeam/Launcher$DesktopBinder;

    invoke-virtual {v4}, Lorg/zeam/Launcher$DesktopBinder;->startBindingItems()V

    goto :goto_0

    .line 1766
    .end local v1           #dock:Lorg/zeam/Dock;
    :cond_3
    invoke-virtual {v3, v2}, Lorg/zeam/Workspace;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/view/ViewGroup;

    invoke-virtual {v4}, Landroid/view/ViewGroup;->removeAllViewsInLayout()V

    .line 1765
    add-int/lit8 v2, v2, 0x1

    goto :goto_1
.end method

.method private bindDrawer(Lorg/zeam/Launcher$DesktopBinder;Lorg/zeam/ApplicationsAdapter;)V
    .locals 0
    .parameter "binder"
    .parameter "drawerAdapter"

    .prologue
    .line 1894
    invoke-virtual {p1}, Lorg/zeam/Launcher$DesktopBinder;->startBindingAppWidgetsWhenIdle()V

    .line 1895
    return-void
.end method

.method private bindItems(Lorg/zeam/Launcher$DesktopBinder;Ljava/util/ArrayList;II)V
    .locals 29
    .parameter "binder"
    .parameter
    .parameter "start"
    .parameter "count"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/zeam/Launcher$DesktopBinder;",
            "Ljava/util/ArrayList",
            "<",
            "Lorg/zeam/ItemInfo;",
            ">;II)V"
        }
    .end annotation

    .prologue
    .line 1781
    .local p2, shortcuts:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lorg/zeam/ItemInfo;>;"
    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    move-object v4, v0

    .line 1782
    .local v4, workspace:Lorg/zeam/Workspace;
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    move/from16 v18, v0

    .line 1783
    .local v18, desktopLocked:Z
    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/zeam/Launcher;->mDragLayer:Lorg/zeam/DragLayer;

    move-object v6, v0

    const v7, 0x7f06001b

    invoke-virtual {v6, v7}, Lorg/zeam/DragLayer;->findViewById(I)Landroid/view/View;

    move-result-object v19

    check-cast v19, Lorg/zeam/Dock;

    .line 1784
    .local v19, dock:Lorg/zeam/Dock;
    new-instance v20, Ljava/util/ArrayList;

    invoke-direct/range {v20 .. v20}, Ljava/util/ArrayList;-><init>()V

    .line 1785
    .local v20, dockItems:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lorg/zeam/ItemInfo;>;"
    add-int/lit8 v6, p3, 0x6

    move v0, v6

    move/from16 v1, p4

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v21

    .line 1787
    .local v21, end:I
    move/from16 v23, p3

    .line 1788
    .end local p3
    .local v23, i:I
    :goto_0
    move/from16 v0, v23

    move/from16 v1, v21

    if-lt v0, v1, :cond_2

    .line 1828
    invoke-virtual/range {v20 .. v20}, Ljava/util/ArrayList;->size()I

    move-result v6

    if-lez v6, :cond_0

    .line 1829
    invoke-virtual/range {v19 .. v20}, Lorg/zeam/Dock;->addItemViews(Ljava/util/ArrayList;)V

    .line 1831
    :cond_0
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lorg/zeam/Launcher;->mBootstrap:Z

    move v6, v0

    if-eqz v6, :cond_1

    .line 1832
    invoke-virtual/range {v20 .. v20}, Ljava/util/ArrayList;->size()I

    move-result v6

    if-nez v6, :cond_8

    .line 1833
    invoke-virtual/range {p0 .. p0}, Lorg/zeam/Launcher;->bootstrapDock()V

    .line 1843
    :cond_1
    :goto_1
    invoke-virtual {v4}, Lorg/zeam/Workspace;->requestLayout()V

    .line 1845
    move/from16 v0, v21

    move/from16 v1, p4

    if-lt v0, v1, :cond_9

    .line 1847
    invoke-direct/range {p0 .. p0}, Lorg/zeam/Launcher;->finishBindDesktopItems()V

    .line 1848
    invoke-virtual/range {p1 .. p1}, Lorg/zeam/Launcher$DesktopBinder;->startBindingDrawer()V

    .line 1852
    :goto_2
    return-void

    .line 1789
    :cond_2
    move-object/from16 v0, p2

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v24

    check-cast v24, Lorg/zeam/ItemInfo;

    .line 1790
    .local v24, item:Lorg/zeam/ItemInfo;
    move-object/from16 v0, v24

    iget-wide v0, v0, Lorg/zeam/ItemInfo;->container:J

    move-wide v12, v0

    long-to-int v6, v12

    packed-switch v6, :pswitch_data_0

    .line 1795
    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->itemType:I

    move v6, v0

    sparse-switch v6, :sswitch_data_0

    .line 1788
    :goto_3
    add-int/lit8 v23, v23, 0x1

    goto :goto_0

    .line 1792
    :pswitch_0
    move-object/from16 v0, v20

    move-object/from16 v1, v24

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_3

    .line 1797
    :sswitch_0
    move-object/from16 v0, v24

    check-cast v0, Lorg/zeam/ApplicationsGridItemInfo;

    move-object/from16 v25, v0

    move-object/from16 v0, p0

    move-object/from16 v1, v25

    invoke-virtual {v0, v1}, Lorg/zeam/Launcher;->createApplicationsGridItemView(Lorg/zeam/ApplicationsGridItemInfo;)Landroid/view/View;

    move-result-object v5

    .line 1798
    .local v5, appsGrid:Landroid/view/View;
    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->screen:I

    move v6, v0

    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->cellX:I

    move v7, v0

    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->cellY:I

    move v8, v0

    const/4 v9, 0x1

    const/4 v10, 0x1

    if-eqz v18, :cond_3

    const/4 v11, 0x0

    :goto_4
    invoke-virtual/range {v4 .. v11}, Lorg/zeam/Workspace;->addInScreen(Landroid/view/View;IIIIIZ)V

    goto :goto_3

    :cond_3
    const/4 v11, 0x1

    goto :goto_4

    .line 1802
    .end local v5           #appsGrid:Landroid/view/View;
    :sswitch_1
    move-object/from16 v0, v24

    check-cast v0, Lorg/zeam/ApplicationItemInfo;

    move-object/from16 v25, v0

    move-object/from16 v0, p0

    move-object/from16 v1, v25

    invoke-virtual {v0, v1}, Lorg/zeam/Launcher;->createShortcut(Lorg/zeam/ApplicationItemInfo;)Landroid/view/View;

    move-result-object v7

    .line 1803
    .local v7, shortcut:Landroid/view/View;
    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->screen:I

    move v8, v0

    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->cellX:I

    move v9, v0

    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->cellY:I

    move v10, v0

    const/4 v11, 0x1

    const/4 v12, 0x1

    if-eqz v18, :cond_4

    const/4 v6, 0x0

    move v13, v6

    :goto_5
    move-object v6, v4

    invoke-virtual/range {v6 .. v13}, Lorg/zeam/Workspace;->addInScreen(Landroid/view/View;IIIIIZ)V

    goto :goto_3

    :cond_4
    const/4 v6, 0x1

    move v13, v6

    goto :goto_5

    .line 1806
    .end local v7           #shortcut:Landroid/view/View;
    :sswitch_2
    const v6, 0x7f03000c

    invoke-virtual {v4}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v7

    invoke-virtual {v4, v7}, Lorg/zeam/Workspace;->getChildAt(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/view/ViewGroup;

    move-object/from16 v0, v24

    check-cast v0, Lorg/zeam/UserFolderInfo;

    move-object/from16 v25, v0

    move v0, v6

    move-object/from16 v1, p0

    move-object/from16 v2, p3

    move-object/from16 v3, v25

    invoke-static {v0, v1, v2, v3}, Lorg/zeam/FolderIcon;->fromXml(ILorg/zeam/Launcher;Landroid/view/ViewGroup;Lorg/zeam/UserFolderInfo;)Lorg/zeam/FolderIcon;

    move-result-object v9

    .line 1807
    .local v9, newFolder:Lorg/zeam/FolderIcon;
    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->screen:I

    move v10, v0

    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->cellX:I

    move v11, v0

    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->cellY:I

    move v12, v0

    const/4 v13, 0x1

    const/4 v14, 0x1

    if-eqz v18, :cond_5

    const/4 v6, 0x0

    move v15, v6

    :goto_6
    move-object v8, v4

    invoke-virtual/range {v8 .. v15}, Lorg/zeam/Workspace;->addInScreen(Landroid/view/View;IIIIIZ)V

    goto/16 :goto_3

    :cond_5
    const/4 v6, 0x1

    move v15, v6

    goto :goto_6

    .line 1810
    .end local v9           #newFolder:Lorg/zeam/FolderIcon;
    :sswitch_3
    const v6, 0x7f030011

    invoke-virtual {v4}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v7

    invoke-virtual {v4, v7}, Lorg/zeam/Workspace;->getChildAt(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/view/ViewGroup;

    move-object/from16 v0, v24

    check-cast v0, Lorg/zeam/LiveFolderInfo;

    move-object/from16 v25, v0

    move v0, v6

    move-object/from16 v1, p0

    move-object/from16 v2, p3

    move-object/from16 v3, v25

    invoke-static {v0, v1, v2, v3}, Lorg/zeam/LiveFolderIcon;->fromXml(ILorg/zeam/Launcher;Landroid/view/ViewGroup;Lorg/zeam/LiveFolderInfo;)Lorg/zeam/LiveFolderIcon;

    move-result-object v11

    .line 1811
    .local v11, newLiveFolder:Lorg/zeam/FolderIcon;
    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->screen:I

    move v12, v0

    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->cellX:I

    move v13, v0

    move-object/from16 v0, v24

    iget v0, v0, Lorg/zeam/ItemInfo;->cellY:I

    move v14, v0

    const/4 v15, 0x1

    const/16 v16, 0x1

    if-eqz v18, :cond_6

    const/4 v6, 0x0

    move/from16 v17, v6

    :goto_7
    move-object v10, v4

    invoke-virtual/range {v10 .. v17}, Lorg/zeam/Workspace;->addInScreen(Landroid/view/View;IIIIIZ)V

    goto/16 :goto_3

    :cond_6
    const/4 v6, 0x1

    move/from16 v17, v6

    goto :goto_7

    .line 1814
    .end local v11           #newLiveFolder:Lorg/zeam/FolderIcon;
    :sswitch_4
    invoke-virtual {v4}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v25

    .line 1815
    .local v25, screen:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/zeam/Launcher;->mInflater:Landroid/view/LayoutInflater;

    move-object v6, v0

    const v7, 0x7f030019

    move-object v0, v4

    move/from16 v1, v25

    invoke-virtual {v0, v1}, Lorg/zeam/Workspace;->getChildAt(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/view/ViewGroup;

    const/4 v8, 0x0

    move-object v0, v6

    move v1, v7

    move-object/from16 v2, p3

    move v3, v8

    invoke-virtual {v0, v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v27

    .line 1816
    .local v27, view:Landroid/view/View;
    const v6, 0x7f060028

    move-object/from16 v0, v27

    move v1, v6

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v26

    check-cast v26, Lorg/zeam/Search;

    .line 1817
    .local v26, search:Lorg/zeam/Search;
    move-object/from16 v0, v26

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Lorg/zeam/Search;->setLauncher(Lorg/zeam/Launcher;)V

    .line 1819
    move-object/from16 v0, v24

    check-cast v0, Lorg/zeam/Widget;

    move-object/from16 v28, v0

    .line 1820
    .local v28, widget:Lorg/zeam/Widget;
    invoke-virtual/range {v27 .. v28}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 1822
    if-eqz v18, :cond_7

    const/4 v6, 0x0

    :goto_8
    move-object v0, v4

    move-object/from16 v1, v27

    move-object/from16 v2, v28

    move v3, v6

    invoke-virtual {v0, v1, v2, v3}, Lorg/zeam/Workspace;->addWidget(Landroid/view/View;Lorg/zeam/Widget;Z)V

    goto/16 :goto_3

    :cond_7
    const/4 v6, 0x1

    goto :goto_8

    .line 1836
    .end local v24           #item:Lorg/zeam/ItemInfo;
    .end local v25           #screen:I
    .end local v26           #search:Lorg/zeam/Search;
    .end local v27           #view:Landroid/view/View;
    .end local v28           #widget:Lorg/zeam/Widget;
    :cond_8
    new-instance v22, Ljava/io/File;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static/range {p0 .. p0}, Lorg/zeam/Preferences;->getApplicationDataPath(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, "dirty"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    move-object/from16 v0, v22

    move-object v1, v6

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 1837
    .local v22, file:Ljava/io/File;
    invoke-virtual/range {v22 .. v22}, Ljava/io/File;->exists()Z

    move-result v6

    if-eqz v6, :cond_1

    .line 1838
    new-instance v6, Lorg/zeam/ApplicationsGridItemInfo;

    move-object v0, v6

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lorg/zeam/ApplicationsGridItemInfo;-><init>(Landroid/content/Context;)V

    const/4 v7, 0x0

    move-object/from16 v0, v19

    move-object v1, v6

    move v2, v7

    invoke-virtual {v0, v1, v2}, Lorg/zeam/Dock;->sendDrop(Lorg/zeam/ItemInfo;I)V

    .line 1839
    invoke-virtual/range {v22 .. v22}, Ljava/io/File;->delete()Z

    goto/16 :goto_1

    .line 1850
    .end local v22           #file:Ljava/io/File;
    :cond_9
    const/4 v6, 0x1

    move-object/from16 v0, p1

    move v1, v6

    move/from16 v2, v23

    move/from16 v3, p4

    invoke-virtual {v0, v1, v2, v3}, Lorg/zeam/Launcher$DesktopBinder;->obtainMessage(III)Landroid/os/Message;

    move-result-object v6

    invoke-virtual {v6}, Landroid/os/Message;->sendToTarget()V

    goto/16 :goto_2

    .line 1790
    :pswitch_data_0
    .packed-switch -0xc8
        :pswitch_0
    .end packed-switch

    .line 1795
    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_1
        0x1 -> :sswitch_1
        0x2 -> :sswitch_2
        0x3 -> :sswitch_3
        0x6 -> :sswitch_0
        0x3e9 -> :sswitch_4
    .end sparse-switch
.end method

.method private checkForLocaleChange()V
    .locals 9

    .prologue
    .line 298
    new-instance v2, Lorg/zeam/Launcher$LocaleConfiguration;

    const/4 v8, 0x0

    invoke-direct {v2, v8}, Lorg/zeam/Launcher$LocaleConfiguration;-><init>(Lorg/zeam/Launcher$LocaleConfiguration;)V

    .line 299
    .local v2, localeConfiguration:Lorg/zeam/Launcher$LocaleConfiguration;
    invoke-static {p0, v2}, Lorg/zeam/Launcher;->readConfiguration(Landroid/content/Context;Lorg/zeam/Launcher$LocaleConfiguration;)V

    .line 301
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getResources()Landroid/content/res/Resources;

    move-result-object v8

    invoke-virtual {v8}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    .line 302
    .local v0, configuration:Landroid/content/res/Configuration;
    iget-object v5, v2, Lorg/zeam/Launcher$LocaleConfiguration;->locale:Ljava/lang/String;

    .line 303
    .local v5, previousLocale:Ljava/lang/String;
    iget-object v8, v0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    invoke-virtual {v8}, Ljava/util/Locale;->toString()Ljava/lang/String;

    move-result-object v1

    .line 304
    .local v1, locale:Ljava/lang/String;
    iget v6, v2, Lorg/zeam/Launcher$LocaleConfiguration;->mcc:I

    .line 305
    .local v6, previousMcc:I
    iget v3, v0, Landroid/content/res/Configuration;->mcc:I

    .line 306
    .local v3, mcc:I
    iget v7, v2, Lorg/zeam/Launcher$LocaleConfiguration;->mnc:I

    .line 307
    .local v7, previousMnc:I
    iget v4, v0, Landroid/content/res/Configuration;->mnc:I

    .line 309
    .local v4, mnc:I
    invoke-virtual {v1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_1

    if-ne v3, v6, :cond_1

    if-ne v4, v7, :cond_1

    const/4 v8, 0x0

    :goto_0
    iput-boolean v8, p0, Lorg/zeam/Launcher;->mLocaleChanged:Z

    .line 311
    iget-boolean v8, p0, Lorg/zeam/Launcher;->mLocaleChanged:Z

    if-eqz v8, :cond_0

    .line 313
    iput-object v1, v2, Lorg/zeam/Launcher$LocaleConfiguration;->locale:Ljava/lang/String;

    .line 314
    iput v3, v2, Lorg/zeam/Launcher$LocaleConfiguration;->mcc:I

    .line 315
    iput v4, v2, Lorg/zeam/Launcher$LocaleConfiguration;->mnc:I

    .line 316
    invoke-static {p0, v2}, Lorg/zeam/Launcher;->writeConfiguration(Landroid/content/Context;Lorg/zeam/Launcher$LocaleConfiguration;)V

    .line 318
    :cond_0
    return-void

    .line 309
    :cond_1
    const/4 v8, 0x1

    goto :goto_0
.end method

.method private clearTypedText()V
    .locals 2

    .prologue
    .line 544
    iget-object v0, p0, Lorg/zeam/Launcher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    invoke-virtual {v0}, Landroid/text/SpannableStringBuilder;->clear()V

    .line 545
    iget-object v0, p0, Lorg/zeam/Launcher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    invoke-virtual {v0}, Landroid/text/SpannableStringBuilder;->clearSpans()V

    .line 546
    iget-object v0, p0, Lorg/zeam/Launcher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Landroid/text/Selection;->setSelection(Landroid/text/Spannable;I)V

    .line 547
    return-void
.end method

.method private closeApplications()V
    .locals 1

    .prologue
    .line 1622
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->closeApplications(Z)V

    .line 1623
    return-void
.end method

.method private closeApplications(Z)V
    .locals 2
    .parameter "animated"

    .prologue
    .line 1627
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mApplicationsGridOpen:Z

    if-eqz v0, :cond_0

    .line 1628
    if-eqz p1, :cond_1

    .line 1629
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->closeApplicationsGrid(Z)V

    .line 1633
    :goto_0
    iget-object v0, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    invoke-interface {v0}, Lorg/zeam/ApplicationsView;->getImplementingView()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->hasFocus()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1634
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v1}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v1

    invoke-virtual {v0, v1}, Lorg/zeam/Workspace;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->requestFocus()Z

    .line 1637
    :cond_0
    return-void

    .line 1631
    :cond_1
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->closeApplicationsGrid(Z)V

    goto :goto_0
.end method

.method private closeApplicationsGrid(Z)V
    .locals 3
    .parameter "animated"

    .prologue
    const/4 v2, 0x0

    .line 2689
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mApplicationsGridOpen:Z

    if-eqz v0, :cond_0

    .line 2691
    iget-object v0, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    if-eqz p1, :cond_1

    iget-boolean v1, p0, Lorg/zeam/Launcher;->mAllowAppsGridAnimations:Z

    if-eqz v1, :cond_1

    const/4 v1, 0x1

    :goto_0
    invoke-interface {v0, v1}, Lorg/zeam/ApplicationsView;->close(Z)Z

    move-result v0

    if-nez v0, :cond_2

    .line 2709
    :cond_0
    :goto_1
    return-void

    :cond_1
    move v1, v2

    .line 2691
    goto :goto_0

    .line 2694
    :cond_2
    iget-object v0, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    invoke-virtual {v0, v2}, Lorg/zeam/Dock;->show(Z)V

    .line 2695
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->unlock()V

    .line 2696
    iput-boolean v2, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    .line 2697
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->invalidate()V

    .line 2698
    iget-object v0, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    if-eqz v0, :cond_3

    .line 2699
    iget-object v0, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    invoke-virtual {v0}, Lorg/zeam/ScreenIndicator;->show()V

    .line 2703
    :cond_3
    if-eqz p1, :cond_4

    iget-boolean v0, p0, Lorg/zeam/Launcher;->mAllowAppsGridAnimations:Z

    if-eqz v0, :cond_4

    .line 2704
    iget-object v0, p0, Lorg/zeam/Launcher;->mHomeButton:Landroid/widget/ImageButton;

    const v1, 0x7f040005

    invoke-static {p0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setAnimation(Landroid/view/animation/Animation;)V

    .line 2706
    :cond_4
    iget-object v0, p0, Lorg/zeam/Launcher;->mHomeButton:Landroid/widget/ImageButton;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 2707
    iput-boolean v2, p0, Lorg/zeam/Launcher;->mApplicationsGridOpen:Z

    goto :goto_1
.end method

.method private closeFolder()V
    .locals 2

    .prologue
    .line 1641
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v1}, Lorg/zeam/Workspace;->getOpenFolder()Lorg/zeam/Folder;

    move-result-object v0

    .line 1642
    .local v0, folder:Lorg/zeam/Folder;
    if-eqz v0, :cond_0

    .line 1643
    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->closeFolder(Lorg/zeam/Folder;)V

    .line 1645
    :cond_0
    return-void
.end method

.method private completeAddAppWidget(Landroid/content/Intent;Lorg/zeam/CellLayout$CellInfo;Z)V
    .locals 18
    .parameter "data"
    .parameter "cellInfo"
    .parameter "insertAtFirst"

    .prologue
    .line 901
    invoke-virtual/range {p1 .. p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v15

    .line 902
    .local v15, extras:Landroid/os/Bundle;
    const-string v3, "appWidgetId"

    const/4 v4, -0x1

    invoke-virtual {v15, v3, v4}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v10

    .line 905
    .local v10, appWidgetId:I
    sget-object v3, Lorg/zeam/Launcher;->LOG_TAG:Ljava/lang/String;

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "dumping extras content="

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15}, Landroid/os/Bundle;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 907
    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/zeam/Launcher;->mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

    move-object v3, v0

    invoke-virtual {v3, v10}, Landroid/appwidget/AppWidgetManager;->getAppWidgetInfo(I)Landroid/appwidget/AppWidgetProviderInfo;

    move-result-object v8

    .line 908
    .local v8, appWidgetInfo:Landroid/appwidget/AppWidgetProviderInfo;
    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    move-object v3, v0

    move-object/from16 v0, p2

    iget v0, v0, Lorg/zeam/CellLayout$CellInfo;->screen:I

    move v4, v0

    invoke-virtual {v3, v4}, Lorg/zeam/Workspace;->getChildAt(I)Landroid/view/View;

    move-result-object v14

    check-cast v14, Lorg/zeam/CellLayout;

    .line 909
    .local v14, cellLayout:Lorg/zeam/CellLayout;
    iget v3, v8, Landroid/appwidget/AppWidgetProviderInfo;->minWidth:I

    iget v4, v8, Landroid/appwidget/AppWidgetProviderInfo;->minHeight:I

    invoke-virtual {v14, v3, v4}, Lorg/zeam/CellLayout;->rectToCell(II)[I

    move-result-object v5

    .line 910
    .local v5, spans:[I
    move-object/from16 v9, p2

    .line 912
    .local v9, cInfo:Lorg/zeam/CellLayout$CellInfo;
    const v3, 0x7f03001a

    const/4 v4, 0x0

    move-object/from16 v0, p0

    move v1, v3

    move-object v2, v4

    invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v17

    .line 913
    .local v17, widgetSpanView:Landroid/view/View;
    const v3, 0x7f06002f

    move-object/from16 v0, v17

    move v1, v3

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Lorg/zeam/NumberPicker;

    .line 914
    .local v7, columnsPicker:Lorg/zeam/NumberPicker;
    const/4 v3, 0x1

    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    move-object v4, v0

    invoke-virtual {v4}, Lorg/zeam/Workspace;->getCurrentDesktopColumns()I

    move-result v4

    invoke-virtual {v7, v3, v4}, Lorg/zeam/NumberPicker;->setRange(II)V

    .line 915
    const/4 v3, 0x0

    aget v3, v5, v3

    invoke-virtual {v7, v3}, Lorg/zeam/NumberPicker;->setCurrent(I)V

    .line 917
    const v3, 0x7f060030

    move-object/from16 v0, v17

    move v1, v3

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lorg/zeam/NumberPicker;

    .line 918
    .local v6, rowsPicker:Lorg/zeam/NumberPicker;
    const/4 v3, 0x1

    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    move-object v4, v0

    invoke-virtual {v4}, Lorg/zeam/Workspace;->getCurrentDesktopRows()I

    move-result v4

    invoke-virtual {v6, v3, v4}, Lorg/zeam/NumberPicker;->setRange(II)V

    .line 919
    const/4 v3, 0x1

    aget v3, v5, v3

    invoke-virtual {v6, v3}, Lorg/zeam/NumberPicker;->setCurrent(I)V

    .line 921
    new-instance v13, Landroid/app/AlertDialog$Builder;

    move-object v0, v13

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 922
    .local v13, builder:Landroid/app/AlertDialog$Builder;
    new-instance v16, Landroid/widget/ScrollView;

    move-object/from16 v0, v16

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;)V

    .line 923
    .local v16, scrollView:Landroid/widget/ScrollView;
    invoke-virtual/range {v16 .. v17}, Landroid/widget/ScrollView;->addView(Landroid/view/View;)V

    .line 924
    move-object v0, v13

    move-object/from16 v1, v16

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;

    .line 926
    invoke-virtual {v13}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v12

    .line 927
    .local v12, alertDialog:Landroid/app/AlertDialog;
    const v3, 0x7f0a0062

    move-object/from16 v0, p0

    move v1, v3

    invoke-virtual {v0, v1}, Lorg/zeam/Launcher;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v12, v3}, Landroid/app/AlertDialog;->setTitle(Ljava/lang/CharSequence;)V

    .line 928
    const/4 v13, -0x1

    const v3, 0x7f0a0056

    move-object/from16 v0, p0

    move v1, v3

    invoke-virtual {v0, v1}, Lorg/zeam/Launcher;->getString(I)Ljava/lang/String;

    .end local v13           #builder:Landroid/app/AlertDialog$Builder;
    move-result-object v14

    .end local v14           #cellLayout:Lorg/zeam/CellLayout;
    new-instance v3, Lorg/zeam/Launcher$3;

    move-object/from16 v4, p0

    move/from16 v11, p3

    invoke-direct/range {v3 .. v11}, Lorg/zeam/Launcher$3;-><init>(Lorg/zeam/Launcher;[ILorg/zeam/NumberPicker;Lorg/zeam/NumberPicker;Landroid/appwidget/AppWidgetProviderInfo;Lorg/zeam/CellLayout$CellInfo;IZ)V

    invoke-virtual {v12, v13, v14, v3}, Landroid/app/AlertDialog;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 937
    const/4 v3, -0x2

    const v4, 0x7f0a005a

    move-object/from16 v0, p0

    move v1, v4

    invoke-virtual {v0, v1}, Lorg/zeam/Launcher;->getString(I)Ljava/lang/String;

    move-result-object v4

    new-instance v5, Lorg/zeam/Launcher$4;

    .end local v5           #spans:[I
    move-object v0, v5

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lorg/zeam/Launcher$4;-><init>(Lorg/zeam/Launcher;)V

    invoke-virtual {v12, v3, v4, v5}, Landroid/app/AlertDialog;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 944
    invoke-virtual {v12}, Landroid/app/AlertDialog;->show()V

    .line 945
    return-void
.end method

.method private completeAddLiveFolder(Landroid/content/Intent;Lorg/zeam/CellLayout$CellInfo;Z)V
    .locals 8
    .parameter "data"
    .parameter "cellInfo"
    .parameter "insertAtFirst"

    .prologue
    const/4 v4, 0x1

    const/4 v2, -0x1

    .line 1438
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v0

    iput v0, p2, Lorg/zeam/CellLayout$CellInfo;->screen:I

    .line 1439
    iget v0, p2, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    if-eq v0, v2, :cond_0

    iget v0, p2, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    if-ne v0, v2, :cond_2

    .line 1440
    :cond_0
    invoke-direct {p0, p2}, Lorg/zeam/Launcher;->findSingleSlot(Lorg/zeam/CellLayout$CellInfo;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 1455
    :cond_1
    :goto_0
    return-void

    .line 1445
    :cond_2
    const/4 v0, 0x0

    invoke-static {p0, p1, p2, v0}, Lorg/zeam/Launcher;->addLiveFolder(Landroid/content/Context;Landroid/content/Intent;Lorg/zeam/CellLayout$CellInfo;Z)Lorg/zeam/LiveFolderInfo;

    move-result-object v7

    .line 1446
    .local v7, info:Lorg/zeam/LiveFolderInfo;
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mRestoring:Z

    if-nez v0, :cond_3

    .line 1447
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0, v7}, Lorg/zeam/LauncherModel;->addDesktopItem(Lorg/zeam/ItemInfo;)V

    .line 1448
    const v2, 0x7f030011

    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget-object v3, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v3}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v3

    invoke-virtual {v0, v3}, Lorg/zeam/Workspace;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-static {v2, p0, v0, v7}, Lorg/zeam/LiveFolderIcon;->fromXml(ILorg/zeam/Launcher;Landroid/view/ViewGroup;Lorg/zeam/LiveFolderInfo;)Lorg/zeam/LiveFolderIcon;

    move-result-object v1

    .line 1450
    .local v1, view:Landroid/view/View;
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget v2, p2, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    iget v3, p2, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    move v5, v4

    move v6, p3

    invoke-virtual/range {v0 .. v6}, Lorg/zeam/Workspace;->addInCurrentScreen(Landroid/view/View;IIIIZ)V

    goto :goto_0

    .line 1452
    .end local v1           #view:Landroid/view/View;
    :cond_3
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0}, Lorg/zeam/LauncherModel;->isDesktopLoaded()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 1453
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0, v7}, Lorg/zeam/LauncherModel;->addDesktopItem(Lorg/zeam/ItemInfo;)V

    goto :goto_0
.end method

.method private completeAddShortcut(Landroid/content/Intent;Lorg/zeam/CellLayout$CellInfo;Z)V
    .locals 8
    .parameter "data"
    .parameter "cellInfo"
    .parameter "insertAtFirst"

    .prologue
    const/4 v4, 0x1

    const/4 v2, -0x1

    .line 880
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v0

    iput v0, p2, Lorg/zeam/CellLayout$CellInfo;->screen:I

    .line 881
    iget v0, p2, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    if-eq v0, v2, :cond_0

    iget v0, p2, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    if-ne v0, v2, :cond_2

    .line 882
    :cond_0
    invoke-direct {p0, p2}, Lorg/zeam/Launcher;->findSingleSlot(Lorg/zeam/CellLayout$CellInfo;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 897
    :cond_1
    :goto_0
    return-void

    .line 886
    :cond_2
    const/4 v0, 0x0

    invoke-static {p0, p1, p2, v0}, Lorg/zeam/Launcher;->addShortcut(Landroid/content/Context;Landroid/content/Intent;Lorg/zeam/CellLayout$CellInfo;Z)Lorg/zeam/ApplicationItemInfo;

    move-result-object v7

    .line 888
    .local v7, info:Lorg/zeam/ApplicationItemInfo;
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mRestoring:Z

    if-nez v0, :cond_3

    .line 890
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0, v7}, Lorg/zeam/LauncherModel;->addDesktopItem(Lorg/zeam/ItemInfo;)V

    .line 891
    invoke-virtual {p0, v7}, Lorg/zeam/Launcher;->createShortcut(Lorg/zeam/ApplicationItemInfo;)Landroid/view/View;

    move-result-object v1

    .line 892
    .local v1, view:Landroid/view/View;
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget v2, p2, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    iget v3, p2, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    move v5, v4

    move v6, p3

    invoke-virtual/range {v0 .. v6}, Lorg/zeam/Workspace;->addInCurrentScreen(Landroid/view/View;IIIIZ)V

    goto :goto_0

    .line 894
    .end local v1           #view:Landroid/view/View;
    :cond_3
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0}, Lorg/zeam/LauncherModel;->isDesktopLoaded()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 895
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0, v7}, Lorg/zeam/LauncherModel;->addDesktopItem(Lorg/zeam/ItemInfo;)V

    goto :goto_0
.end method

.method private expandNotifications()V
    .locals 6

    .prologue
    .line 1525
    :try_start_0
    const-string v2, "statusbar"

    invoke-virtual {p0, v2}, Lorg/zeam/Launcher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    .line 1526
    .local v1, service:Ljava/lang/Object;
    if-eqz v1, :cond_0

    .line 1527
    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    const-string v3, "expand"

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Class;

    invoke-virtual {v2, v3, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v0

    .line 1528
    .local v0, expand:Ljava/lang/reflect/Method;
    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 1532
    .end local v0           #expand:Ljava/lang/reflect/Method;
    .end local v1           #service:Ljava/lang/Object;
    :cond_0
    :goto_0
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getWorkspace()Lorg/zeam/Workspace;

    move-result-object v2

    new-instance v3, Lorg/zeam/Launcher$7;

    invoke-direct {v3, p0}, Lorg/zeam/Launcher$7;-><init>(Lorg/zeam/Launcher;)V

    .line 1537
    const-wide/16 v4, 0x64

    .line 1532
    invoke-virtual {v2, v3, v4, v5}, Lorg/zeam/Workspace;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 1538
    return-void

    .line 1530
    :catch_0
    move-exception v2

    goto :goto_0
.end method

.method private findSingleSlot(Lorg/zeam/CellLayout$CellInfo;)Z
    .locals 4
    .parameter "cellInfo"

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 1499
    const/4 v1, 0x2

    new-array v0, v1, [I

    .line 1500
    .local v0, xy:[I
    invoke-direct {p0, p1, v0, v2, v2}, Lorg/zeam/Launcher;->findSlot(Lorg/zeam/CellLayout$CellInfo;[III)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 1501
    aget v1, v0, v3

    iput v1, p1, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    .line 1502
    aget v1, v0, v2

    iput v1, p1, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    move v1, v2

    .line 1505
    :goto_0
    return v1

    :cond_0
    move v1, v3

    goto :goto_0
.end method

.method private findSlot(Lorg/zeam/CellLayout$CellInfo;[III)Z
    .locals 4
    .parameter "cellInfo"
    .parameter "xy"
    .parameter "spanX"
    .parameter "spanY"

    .prologue
    const/4 v3, 0x0

    .line 1510
    invoke-virtual {p1, p2, p3, p4}, Lorg/zeam/CellLayout$CellInfo;->findCellForSpan([III)Z

    move-result v1

    if-nez v1, :cond_1

    .line 1511
    iget-object v1, p0, Lorg/zeam/Launcher;->mSavedState:Landroid/os/Bundle;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lorg/zeam/Launcher;->mSavedState:Landroid/os/Bundle;

    const-string v2, "launcher.add_occupied_cells"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getBooleanArray(Ljava/lang/String;)[Z

    move-result-object v1

    move-object v0, v1

    .line 1513
    .local v0, occupied:[Z
    :goto_0
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v1, v0}, Lorg/zeam/Workspace;->findAllVacantCells([Z)Lorg/zeam/CellLayout$CellInfo;

    move-result-object p1

    .line 1514
    invoke-virtual {p1, p2, p3, p4}, Lorg/zeam/CellLayout$CellInfo;->findCellForSpan([III)Z

    move-result v1

    if-nez v1, :cond_1

    .line 1515
    const v1, 0x7f0a006d

    invoke-virtual {p0, v1}, Lorg/zeam/Launcher;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {p0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    move v1, v3

    .line 1519
    .end local v0           #occupied:[Z
    :goto_1
    return v1

    .line 1511
    :cond_0
    const/4 v1, 0x0

    move-object v0, v1

    goto :goto_0

    .line 1519
    :cond_1
    const/4 v1, 0x1

    goto :goto_1
.end method

.method private finishBindDesktopItems()V
    .locals 11

    .prologue
    const/4 v10, 0x0

    const/4 v9, 0x0

    .line 1856
    iget-object v6, p0, Lorg/zeam/Launcher;->mSavedState:Landroid/os/Bundle;

    if-eqz v6, :cond_3

    .line 1857
    iget-object v6, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v6}, Lorg/zeam/Workspace;->hasFocus()Z

    move-result v6

    if-nez v6, :cond_0

    .line 1858
    iget-object v6, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget-object v7, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v7}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v7

    invoke-virtual {v6, v7}, Lorg/zeam/Workspace;->getChildAt(I)Landroid/view/View;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/View;->requestFocus()Z

    .line 1860
    :cond_0
    iget-object v6, p0, Lorg/zeam/Launcher;->mSavedState:Landroid/os/Bundle;

    const-string v7, "launcher.user_folder"

    invoke-virtual {v6, v7}, Landroid/os/Bundle;->getLongArray(Ljava/lang/String;)[J

    move-result-object v5

    .line 1861
    .local v5, userFolders:[J
    if-eqz v5, :cond_1

    .line 1862
    array-length v6, v5

    move v7, v9

    :goto_0
    if-lt v7, v6, :cond_6

    .line 1868
    iget-object v6, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v6}, Lorg/zeam/Workspace;->getOpenFolder()Lorg/zeam/Folder;

    move-result-object v4

    .line 1869
    .local v4, openFolder:Lorg/zeam/Folder;
    if-eqz v4, :cond_1

    .line 1870
    invoke-virtual {v4}, Lorg/zeam/Folder;->requestFocus()Z

    .line 1873
    .end local v4           #openFolder:Lorg/zeam/Folder;
    :cond_1
    iget-object v6, p0, Lorg/zeam/Launcher;->mSavedState:Landroid/os/Bundle;

    const-string v7, "launcher.all_apps_folder"

    invoke-virtual {v6, v7, v9}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    .line 1874
    .local v0, allApps:Z
    if-eqz v0, :cond_2

    .line 1875
    invoke-direct {p0, v9}, Lorg/zeam/Launcher;->openApplicationsGrid(Z)V

    .line 1877
    :cond_2
    iput-object v10, p0, Lorg/zeam/Launcher;->mSavedState:Landroid/os/Bundle;

    .line 1880
    .end local v0           #allApps:Z
    .end local v5           #userFolders:[J
    :cond_3
    iget-object v6, p0, Lorg/zeam/Launcher;->mSavedInstanceState:Landroid/os/Bundle;

    if-eqz v6, :cond_4

    .line 1882
    :try_start_0
    iget-object v6, p0, Lorg/zeam/Launcher;->mSavedInstanceState:Landroid/os/Bundle;

    invoke-super {p0, v6}, Landroid/app/Activity;->onRestoreInstanceState(Landroid/os/Bundle;)V
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1885
    :goto_1
    iput-object v10, p0, Lorg/zeam/Launcher;->mSavedInstanceState:Landroid/os/Bundle;

    .line 1887
    :cond_4
    iget-boolean v6, p0, Lorg/zeam/Launcher;->mApplicationsGridOpen:Z

    if-eqz v6, :cond_5

    iget-object v6, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    invoke-interface {v6}, Lorg/zeam/ApplicationsView;->getImplementingView()Landroid/view/View;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/View;->hasFocus()Z

    move-result v6

    if-nez v6, :cond_5

    .line 1888
    iget-object v6, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    invoke-interface {v6}, Lorg/zeam/ApplicationsView;->getImplementingView()Landroid/view/View;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/View;->requestFocus()Z

    .line 1890
    :cond_5
    iput-boolean v9, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    .line 1891
    return-void

    .line 1862
    .restart local v5       #userFolders:[J
    :cond_6
    aget-wide v1, v5, v7

    .line 1863
    .local v1, folderId:J
    sget-object v8, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v8, v1, v2}, Lorg/zeam/LauncherModel;->findFolderById(J)Lorg/zeam/FolderInfo;

    move-result-object v3

    .line 1864
    .local v3, info:Lorg/zeam/FolderInfo;
    if-eqz v3, :cond_7

    .line 1865
    invoke-direct {p0, v3}, Lorg/zeam/Launcher;->openFolder(Lorg/zeam/FolderInfo;)V

    .line 1862
    :cond_7
    add-int/lit8 v7, v7, 0x1

    goto :goto_0

    .line 1883
    .end local v1           #folderId:J
    .end local v3           #info:Lorg/zeam/FolderInfo;
    .end local v5           #userFolders:[J
    :catch_0
    move-exception v6

    goto :goto_1
.end method

.method private static getBootstrapFile(Landroid/content/Context;)Ljava/io/File;
    .locals 3
    .parameter "context"

    .prologue
    .line 1693
    new-instance v0, Ljava/io/File;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {p0}, Lorg/zeam/Preferences;->getApplicationDataPath(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "x"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    return-object v0
.end method

.method static getModel()Lorg/zeam/LauncherModel;
    .locals 1

    .prologue
    .line 2052
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    return-object v0
.end method

.method static getScreen()I
    .locals 2

    .prologue
    .line 380
    sget-object v0, Lorg/zeam/Launcher;->sLock:Ljava/lang/Object;

    monitor-enter v0

    .line 381
    :try_start_0
    sget v1, Lorg/zeam/Launcher;->sScreen:I

    monitor-exit v0

    return v1

    .line 380
    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public static getScreenCount(Landroid/content/Context;)I
    .locals 1
    .parameter "context"

    .prologue
    .line 2851
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getNumberOfScreens(Landroid/content/Context;)I

    move-result v0

    return v0
.end method

.method private getTypedText()Ljava/lang/String;
    .locals 1

    .prologue
    .line 539
    iget-object v0, p0, Lorg/zeam/Launcher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    invoke-virtual {v0}, Landroid/text/SpannableStringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private handleFolderClick(Lorg/zeam/FolderInfo;)V
    .locals 3
    .parameter "folderInfo"

    .prologue
    .line 1974
    iget-boolean v2, p1, Lorg/zeam/FolderInfo;->opened:Z

    if-nez v2, :cond_1

    .line 1976
    invoke-direct {p0}, Lorg/zeam/Launcher;->closeFolder()V

    .line 1977
    invoke-direct {p0, p1}, Lorg/zeam/Launcher;->openFolder(Lorg/zeam/FolderInfo;)V

    .line 1993
    :cond_0
    :goto_0
    return-void

    .line 1980
    :cond_1
    iget-object v2, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v2, p1}, Lorg/zeam/Workspace;->getFolderForTag(Ljava/lang/Object;)Lorg/zeam/Folder;

    move-result-object v1

    .line 1982
    .local v1, openFolder:Lorg/zeam/Folder;
    if-eqz v1, :cond_0

    .line 1984
    iget-object v2, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v2, v1}, Lorg/zeam/Workspace;->getScreenForView(Landroid/view/View;)I

    move-result v0

    .line 1985
    .local v0, folderScreen:I
    invoke-virtual {p0, v1}, Lorg/zeam/Launcher;->closeFolder(Lorg/zeam/Folder;)V

    .line 1987
    iget-object v2, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v2}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v2

    if-eq v0, v2, :cond_0

    .line 1988
    invoke-direct {p0}, Lorg/zeam/Launcher;->closeFolder()V

    .line 1989
    invoke-direct {p0, p1}, Lorg/zeam/Launcher;->openFolder(Lorg/zeam/FolderInfo;)V

    goto :goto_0
.end method

.method private hideDesktop(Z)V
    .locals 2
    .parameter "enable"

    .prologue
    const/4 v1, 0x1

    .line 2629
    if-eqz p1, :cond_0

    .line 2630
    iget-object v0, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    invoke-virtual {v0, v1}, Lorg/zeam/Dock;->hide(Z)V

    .line 2634
    :goto_0
    return-void

    .line 2632
    :cond_0
    iget-object v0, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    invoke-virtual {v0, v1}, Lorg/zeam/Dock;->show(Z)V

    goto :goto_0
.end method

.method private static infoFromApplicationIntent(Landroid/content/Context;Landroid/content/Intent;)Lorg/zeam/ApplicationItemInfo;
    .locals 7
    .parameter "context"
    .parameter "data"

    .prologue
    .line 812
    invoke-virtual {p1}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v1

    .line 813
    .local v1, component:Landroid/content/ComponentName;
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v4

    .line 815
    .local v4, packageManager:Landroid/content/pm/PackageManager;
    const/4 v0, 0x0

    .line 817
    .local v0, activityInfo:Landroid/content/pm/ActivityInfo;
    const/4 v5, 0x0

    :try_start_0
    invoke-virtual {v4, v1, v5}, Landroid/content/pm/PackageManager;->getActivityInfo(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    .line 822
    :goto_0
    if-eqz v0, :cond_1

    .line 824
    new-instance v3, Lorg/zeam/ApplicationItemInfo;

    invoke-direct {v3}, Lorg/zeam/ApplicationItemInfo;-><init>()V

    .line 825
    .local v3, itemInfo:Lorg/zeam/ApplicationItemInfo;
    invoke-virtual {v0, v4}, Landroid/content/pm/ActivityInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v5

    iput-object v5, v3, Lorg/zeam/ApplicationItemInfo;->title:Ljava/lang/CharSequence;

    .line 826
    iget-object v5, v3, Lorg/zeam/ApplicationItemInfo;->title:Ljava/lang/CharSequence;

    if-nez v5, :cond_0

    .line 827
    iget-object v5, v0, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iput-object v5, v3, Lorg/zeam/ApplicationItemInfo;->title:Ljava/lang/CharSequence;

    .line 829
    :cond_0
    const/high16 v5, 0x1020

    invoke-virtual {v3, v1, v5}, Lorg/zeam/ApplicationItemInfo;->setActivity(Landroid/content/ComponentName;I)V

    .line 832
    const-wide/16 v5, -0x1

    iput-wide v5, v3, Lorg/zeam/ApplicationItemInfo;->container:J

    .line 833
    invoke-virtual {v0, v4}, Landroid/content/pm/ActivityInfo;->loadIcon(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    iput-object v5, v3, Lorg/zeam/ApplicationItemInfo;->icon:Landroid/graphics/drawable/Drawable;

    move-object v5, v3

    .line 836
    .end local v3           #itemInfo:Lorg/zeam/ApplicationItemInfo;
    :goto_1
    return-object v5

    .line 818
    :catch_0
    move-exception v2

    .line 819
    .local v2, e:Landroid/content/pm/PackageManager$NameNotFoundException;
    sget-object v5, Lorg/zeam/Launcher;->LOG_TAG:Ljava/lang/String;

    const-string v6, "Couldn\'t find ActivityInfo for selected application"

    invoke-static {v5, v6, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0

    .line 836
    .end local v2           #e:Landroid/content/pm/PackageManager$NameNotFoundException;
    :cond_1
    const/4 v5, 0x0

    goto :goto_1
.end method

.method private static infoFromShortcutIntent(Landroid/content/Context;Landroid/content/Intent;)Lorg/zeam/ApplicationItemInfo;
    .locals 12
    .parameter "context"
    .parameter "data"

    .prologue
    .line 962
    const-string v1, "android.intent.extra.shortcut.INTENT"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v6

    check-cast v6, Landroid/content/Intent;

    .line 963
    .local v6, intent:Landroid/content/Intent;
    const-string v1, "android.intent.extra.shortcut.NAME"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 964
    .local v7, name:Ljava/lang/String;
    const-string v1, "android.intent.extra.shortcut.ICON"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v1

    check-cast v1, Landroid/graphics/Bitmap;

    .line 966
    .local v1, bitmap:Landroid/graphics/Bitmap;
    const/4 v4, 0x0

    .line 967
    .local v4, icon:Landroid/graphics/drawable/Drawable;
    const/4 v3, 0x0

    .line 968
    .local v3, filtered:Z
    const/4 v2, 0x0

    .line 969
    .local v2, customIcon:Z
    const/4 v5, 0x0

    .line 971
    .local v5, iconResource:Landroid/content/Intent$ShortcutIconResource;
    if-eqz v1, :cond_0

    .line 972
    new-instance v2, Lorg/zeam/FastBitmapDrawable;

    .end local v2           #customIcon:Z
    invoke-static {v1, p0}, Lorg/zeam/Utilities;->createBitmapThumbnail(Landroid/graphics/Bitmap;Landroid/content/Context;)Landroid/graphics/Bitmap;

    move-result-object p1

    .end local p1
    invoke-direct {v2, p1}, Lorg/zeam/FastBitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V

    .line 973
    .end local v4           #icon:Landroid/graphics/drawable/Drawable;
    .local v2, icon:Landroid/graphics/drawable/Drawable;
    const/4 v1, 0x1

    .line 974
    .end local v3           #filtered:Z
    .local v1, filtered:Z
    const/4 p1, 0x1

    .local p1, customIcon:Z
    move-object v3, v5

    .line 992
    .end local v5           #iconResource:Landroid/content/Intent$ShortcutIconResource;
    .local v3, iconResource:Landroid/content/Intent$ShortcutIconResource;
    :goto_0
    if-nez v2, :cond_2

    .line 993
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object p0

    .end local p0
    invoke-virtual {p0}, Landroid/content/pm/PackageManager;->getDefaultActivityIcon()Landroid/graphics/drawable/Drawable;

    move-result-object p0

    .line 995
    .end local v2           #icon:Landroid/graphics/drawable/Drawable;
    .local p0, icon:Landroid/graphics/drawable/Drawable;
    :goto_1
    new-instance v2, Lorg/zeam/ApplicationItemInfo;

    invoke-direct {v2}, Lorg/zeam/ApplicationItemInfo;-><init>()V

    .line 996
    .local v2, info:Lorg/zeam/ApplicationItemInfo;
    iput-object p0, v2, Lorg/zeam/ApplicationItemInfo;->icon:Landroid/graphics/drawable/Drawable;

    .line 997
    iput-boolean v1, v2, Lorg/zeam/ApplicationItemInfo;->filtered:Z

    .line 998
    iput-object v7, v2, Lorg/zeam/ApplicationItemInfo;->title:Ljava/lang/CharSequence;

    .line 999
    iput-object v6, v2, Lorg/zeam/ApplicationItemInfo;->intent:Landroid/content/Intent;

    .line 1000
    iput-boolean p1, v2, Lorg/zeam/ApplicationItemInfo;->customIcon:Z

    .line 1001
    iput-object v3, v2, Lorg/zeam/ApplicationItemInfo;->iconResource:Landroid/content/Intent$ShortcutIconResource;

    .line 1002
    return-object v2

    .line 977
    .local v1, bitmap:Landroid/graphics/Bitmap;
    .local v2, customIcon:Z
    .local v3, filtered:Z
    .restart local v4       #icon:Landroid/graphics/drawable/Drawable;
    .restart local v5       #iconResource:Landroid/content/Intent$ShortcutIconResource;
    .local p0, context:Landroid/content/Context;
    .local p1, data:Landroid/content/Intent;
    :cond_0
    const-string v1, "android.intent.extra.shortcut.ICON_RESOURCE"

    .end local v1           #bitmap:Landroid/graphics/Bitmap;
    invoke-virtual {p1, v1}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v1

    .line 978
    .local v1, extra:Landroid/os/Parcelable;
    if-eqz v1, :cond_1

    instance-of p1, v1, Landroid/content/Intent$ShortcutIconResource;

    .end local p1           #data:Landroid/content/Intent;
    if-eqz p1, :cond_1

    .line 980
    :try_start_0
    move-object v0, v1

    check-cast v0, Landroid/content/Intent$ShortcutIconResource;

    move-object v5, v0

    .line 981
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object p1

    .line 982
    .local p1, packageManager:Landroid/content/pm/PackageManager;
    iget-object v8, v5, Landroid/content/Intent$ShortcutIconResource;->packageName:Ljava/lang/String;

    invoke-virtual {p1, v8}, Landroid/content/pm/PackageManager;->getResourcesForApplication(Ljava/lang/String;)Landroid/content/res/Resources;

    move-result-object v8

    .line 983
    .local v8, resources:Landroid/content/res/Resources;
    iget-object p1, v5, Landroid/content/Intent$ShortcutIconResource;->resourceName:Ljava/lang/String;

    .end local p1           #packageManager:Landroid/content/pm/PackageManager;
    const/4 v9, 0x0

    const/4 v10, 0x0

    invoke-virtual {v8, p1, v9, v10}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

    move-result p1

    .line 984
    .local p1, id:I
    invoke-virtual {v8, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object p1

    .end local v4           #icon:Landroid/graphics/drawable/Drawable;
    .local p1, icon:Landroid/graphics/drawable/Drawable;
    move v1, v3

    .end local v3           #filtered:Z
    .local v1, filtered:Z
    move-object v3, v5

    .end local v5           #iconResource:Landroid/content/Intent$ShortcutIconResource;
    .local v3, iconResource:Landroid/content/Intent$ShortcutIconResource;
    move v11, v2

    .end local v2           #customIcon:Z
    .local v11, customIcon:Z
    move-object v2, p1

    .end local p1           #icon:Landroid/graphics/drawable/Drawable;
    .local v2, icon:Landroid/graphics/drawable/Drawable;
    move p1, v11

    .end local v11           #customIcon:Z
    .local p1, customIcon:Z
    goto :goto_0

    .line 986
    .end local v8           #resources:Landroid/content/res/Resources;
    .end local p1           #customIcon:Z
    .local v1, extra:Landroid/os/Parcelable;
    .local v2, customIcon:Z
    .local v3, filtered:Z
    .restart local v4       #icon:Landroid/graphics/drawable/Drawable;
    .restart local v5       #iconResource:Landroid/content/Intent$ShortcutIconResource;
    :catch_0
    move-exception p1

    .line 987
    .local p1, e:Ljava/lang/Exception;
    sget-object p1, Lorg/zeam/Launcher;->LOG_TAG:Ljava/lang/String;

    .end local p1           #e:Ljava/lang/Exception;
    new-instance v8, Ljava/lang/StringBuilder;

    const-string v9, "Could not load shortcut icon: "

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    .end local v1           #extra:Landroid/os/Parcelable;
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {p1, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    :cond_1
    move p1, v2

    .end local v2           #customIcon:Z
    .local p1, customIcon:Z
    move v1, v3

    .end local v3           #filtered:Z
    .local v1, filtered:Z
    move-object v3, v5

    .end local v5           #iconResource:Landroid/content/Intent$ShortcutIconResource;
    .local v3, iconResource:Landroid/content/Intent$ShortcutIconResource;
    move-object v2, v4

    .end local v4           #icon:Landroid/graphics/drawable/Drawable;
    .local v2, icon:Landroid/graphics/drawable/Drawable;
    goto :goto_0

    :cond_2
    move-object p0, v2

    .end local v2           #icon:Landroid/graphics/drawable/Drawable;
    .local p0, icon:Landroid/graphics/drawable/Drawable;
    goto :goto_1
.end method

.method private isFullscreen()Z
    .locals 1

    .prologue
    .line 289
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mFullscreen:Z

    return v0
.end method

.method private loadDockBackground()V
    .locals 7

    .prologue
    const v6, 0x7f020009

    .line 693
    iget-object v0, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    .line 694
    .local v0, dock:Lorg/zeam/Dock;
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    .line 695
    .local v4, resources:Landroid/content/res/Resources;
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getDockBackgroundType(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    .line 696
    .local v1, dockBackgroundType:Ljava/lang/String;
    const v5, 0x7f090006

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v2

    .line 697
    .local v2, dockBackgrounds:[Ljava/lang/String;
    const/high16 v5, 0x6000

    invoke-virtual {v0, v5}, Lorg/zeam/Dock;->setBackgroundColor(I)V

    .line 699
    const/4 v3, 0x0

    .local v3, i:I
    :goto_0
    array-length v5, v2

    if-lt v3, v5, :cond_0

    .line 729
    invoke-virtual {v0}, Lorg/zeam/Dock;->invalidate()V

    .line 730
    return-void

    .line 700
    :cond_0
    aget-object v5, v2, v3

    invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 701
    packed-switch v3, :pswitch_data_0

    .line 724
    invoke-virtual {v0, v6}, Lorg/zeam/Dock;->setBackgroundResource(I)V

    .line 699
    :cond_1
    :goto_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 703
    :pswitch_0
    const/high16 v5, -0x7800

    invoke-virtual {v0, v5}, Lorg/zeam/Dock;->setBackgroundColor(I)V

    goto :goto_1

    .line 706
    :pswitch_1
    const v5, 0x7f02000a

    invoke-virtual {v0, v5}, Lorg/zeam/Dock;->setBackgroundResource(I)V

    goto :goto_1

    .line 709
    :pswitch_2
    const/4 v5, 0x0

    invoke-virtual {v0, v5}, Lorg/zeam/Dock;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1

    .line 712
    :pswitch_3
    const/high16 v5, -0x100

    invoke-virtual {v0, v5}, Lorg/zeam/Dock;->setBackgroundColor(I)V

    goto :goto_1

    .line 715
    :pswitch_4
    const v5, -0xbbbbbc

    invoke-virtual {v0, v5}, Lorg/zeam/Dock;->setBackgroundColor(I)V

    goto :goto_1

    .line 718
    :pswitch_5
    invoke-virtual {v0, v6}, Lorg/zeam/Dock;->setBackgroundResource(I)V

    goto :goto_1

    .line 721
    :pswitch_6
    const v5, 0x50ffffff

    invoke-virtual {v0, v5}, Lorg/zeam/Dock;->setBackgroundColor(I)V

    goto :goto_1

    .line 701
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
    .end packed-switch
.end method

.method private loadDockWidths()V
    .locals 6

    .prologue
    .line 668
    iget-object v0, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    .line 669
    .local v0, dock:Lorg/zeam/Dock;
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    .line 670
    .local v4, resources:Landroid/content/res/Resources;
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getDockItemWidth(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    .line 671
    .local v1, dockItemWidth:Ljava/lang/String;
    const v5, 0x7f090008

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v2

    .line 673
    .local v2, dockItemWidths:[Ljava/lang/String;
    const/4 v3, 0x0

    .local v3, i:I
    :goto_0
    array-length v5, v2

    if-lt v3, v5, :cond_0

    .line 688
    invoke-virtual {v0}, Lorg/zeam/Dock;->invalidate()V

    .line 689
    return-void

    .line 674
    :cond_0
    aget-object v5, v2, v3

    invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 675
    packed-switch v3, :pswitch_data_0

    .line 683
    :goto_1
    :pswitch_0
    const/4 v5, 0x1

    invoke-virtual {v0, v5}, Lorg/zeam/Dock;->setItemWidth(I)V

    .line 673
    :cond_1
    :goto_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 677
    :pswitch_1
    const/4 v5, 0x0

    invoke-virtual {v0, v5}, Lorg/zeam/Dock;->setItemWidth(I)V

    goto :goto_2

    .line 680
    :pswitch_2
    const/4 v5, 0x2

    invoke-virtual {v0, v5}, Lorg/zeam/Dock;->setItemWidth(I)V

    goto :goto_1

    .line 675
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method private loadIndicator()V
    .locals 9

    .prologue
    const/4 v8, 0x0

    const/4 v7, 0x1

    .line 734
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    .line 735
    .local v4, resources:Landroid/content/res/Resources;
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getScreenIndicator(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    .line 736
    .local v2, indicator:Ljava/lang/String;
    const v5, 0x7f090003

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v3

    .line 738
    .local v3, indicators:[Ljava/lang/String;
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    array-length v5, v3

    if-lt v1, v5, :cond_1

    .line 765
    :goto_1
    iget-object v5, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    if-eqz v5, :cond_0

    .line 767
    iget-object v5, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    invoke-virtual {v5, v7}, Lorg/zeam/ScreenIndicator;->setAutoHide(Z)V

    .line 768
    iget-object v5, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    if-eqz v5, :cond_0

    .line 769
    iget-object v5, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    iget-object v6, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v6}, Lorg/zeam/Workspace;->getChildCount()I

    move-result v6

    invoke-virtual {v5, v6}, Lorg/zeam/ScreenIndicator;->setItems(I)V

    .line 770
    iget-object v5, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v5}, Lorg/zeam/Workspace;->indicateCurrent()V

    .line 773
    :cond_0
    return-void

    .line 739
    :cond_1
    aget-object v5, v3, v1

    invoke-virtual {v5, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 741
    packed-switch v1, :pswitch_data_0

    .line 754
    const v5, 0x7f06001d

    :try_start_0
    invoke-virtual {p0, v5}, Lorg/zeam/Launcher;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Lorg/zeam/ScreenIndicator;

    iput-object v5, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    .line 755
    iget-object v5, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    const/4 v6, 0x2

    invoke-virtual {v5, v6}, Lorg/zeam/ScreenIndicator;->setType(I)V

    .line 738
    :cond_2
    :goto_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 743
    :pswitch_0
    const/4 v5, 0x0

    iput-object v5, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;
    :try_end_0
    .catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    .line 758
    :catch_0
    move-exception v5

    move-object v0, v5

    .line 759
    .local v0, cce:Ljava/lang/ClassCastException;
    iput-object v8, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    goto :goto_1

    .line 746
    .end local v0           #cce:Ljava/lang/ClassCastException;
    :pswitch_1
    const v5, 0x7f06001d

    :try_start_1
    invoke-virtual {p0, v5}, Lorg/zeam/Launcher;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Lorg/zeam/ScreenIndicator;

    iput-object v5, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    .line 747
    iget-object v5, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    const/4 v6, 0x2

    invoke-virtual {v5, v6}, Lorg/zeam/ScreenIndicator;->setType(I)V

    goto :goto_2

    .line 750
    :pswitch_2
    const v5, 0x7f06001d

    invoke-virtual {p0, v5}, Lorg/zeam/Launcher;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Lorg/zeam/ScreenIndicator;

    iput-object v5, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    .line 751
    iget-object v5, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    const/4 v6, 0x1

    invoke-virtual {v5, v6}, Lorg/zeam/ScreenIndicator;->setType(I)V
    :try_end_1
    .catch Ljava/lang/ClassCastException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_2

    .line 741
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method private loadPreferences()V
    .locals 2

    .prologue
    .line 647
    sget-object v0, Lorg/zeam/Launcher;->LOG_TAG:Ljava/lang/String;

    const-string v1, "-- loadPreferences()"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 648
    invoke-direct {p0}, Lorg/zeam/Launcher;->setRequestedOrientation()V

    .line 649
    invoke-direct {p0}, Lorg/zeam/Launcher;->setRequestedFullscreen()V

    .line 651
    sget-boolean v0, Lorg/zeam/Launcher;->sRestartLoaders:Z

    if-eqz v0, :cond_0

    .line 652
    const/4 v0, 0x0

    sput-boolean v0, Lorg/zeam/Launcher;->sRestartLoaders:Z

    .line 653
    invoke-direct {p0}, Lorg/zeam/Launcher;->startLoaders()V

    .line 655
    :cond_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lorg/zeam/Launcher;->mFullScreenPreviews:Z

    .line 656
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->isAnimateAppsGridEnabled(Landroid/content/Context;)Z

    move-result v0

    iput-boolean v0, p0, Lorg/zeam/Launcher;->mAllowAppsGridAnimations:Z

    .line 657
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->isElasticScrollingEnabled(Landroid/content/Context;)Z

    move-result v1

    invoke-virtual {v0, v1}, Lorg/zeam/Workspace;->setElasticScrolling(Z)V

    .line 658
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->isScrollWallpaperEnabled(Landroid/content/Context;)Z

    move-result v1

    invoke-virtual {v0, v1}, Lorg/zeam/Workspace;->setScrollWallpaper(Z)V

    .line 659
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->isManageWallpaperEnabled(Landroid/content/Context;)Z

    move-result v1

    invoke-virtual {v0, v1}, Lorg/zeam/Workspace;->setDrawWallpaper(Z)V

    .line 661
    invoke-direct {p0}, Lorg/zeam/Launcher;->loadIndicator()V

    .line 662
    invoke-direct {p0}, Lorg/zeam/Launcher;->loadDockWidths()V

    .line 663
    invoke-direct {p0}, Lorg/zeam/Launcher;->loadDockBackground()V

    .line 664
    return-void
.end method

.method private mustBootstrapDock()Z
    .locals 2

    .prologue
    .line 1680
    invoke-static {p0}, Lorg/zeam/Launcher;->getBootstrapFile(Landroid/content/Context;)Ljava/io/File;

    move-result-object v0

    .line 1681
    .local v0, file:Ljava/io/File;
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_0

    .line 1683
    :try_start_0
    invoke-virtual {v0}, Ljava/io/File;->createNewFile()Z
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1686
    :goto_0
    const/4 v1, 0x1

    .line 1688
    :goto_1
    return v1

    :cond_0
    const/4 v1, 0x0

    goto :goto_1

    .line 1684
    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method private onAppWidgetReset()V
    .locals 1

    .prologue
    .line 1664
    iget-object v0, p0, Lorg/zeam/Launcher;->mAppWidgetHost:Lorg/zeam/LauncherAppWidgetHost;

    invoke-virtual {v0}, Lorg/zeam/LauncherAppWidgetHost;->startListening()V

    .line 1665
    return-void
.end method

.method private onFavoritesChanged()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 1659
    const/4 v0, 0x1

    iput-boolean v0, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    .line 1660
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0, v1, p0, v1}, Lorg/zeam/LauncherModel;->loadUserItems(ZLorg/zeam/Launcher;Z)V

    .line 1661
    return-void
.end method

.method private openApplicationsGrid(Z)V
    .locals 4
    .parameter "animated"

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 2664
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mApplicationsGridOpen:Z

    if-nez v0, :cond_2

    .line 2666
    iget-object v0, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    invoke-virtual {v0, v2}, Lorg/zeam/Dock;->hide(Z)V

    .line 2667
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->enableChildrenCache()V

    .line 2668
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->lock()V

    .line 2669
    iput-boolean v3, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    .line 2670
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->invalidate()V

    .line 2671
    iget-object v0, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    invoke-interface {v0}, Lorg/zeam/ApplicationsView;->getImplementingView()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->bringToFront()V

    .line 2672
    iget-object v0, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    if-eqz p1, :cond_3

    iget-boolean v1, p0, Lorg/zeam/Launcher;->mAllowAppsGridAnimations:Z

    if-eqz v1, :cond_3

    move v1, v3

    :goto_0
    invoke-interface {v0, v1}, Lorg/zeam/ApplicationsView;->open(Z)V

    .line 2674
    if-eqz p1, :cond_0

    iget-boolean v0, p0, Lorg/zeam/Launcher;->mAllowAppsGridAnimations:Z

    if-eqz v0, :cond_0

    .line 2675
    iget-object v0, p0, Lorg/zeam/Launcher;->mHomeButton:Landroid/widget/ImageButton;

    const v1, 0x7f040004

    invoke-static {p0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setAnimation(Landroid/view/animation/Animation;)V

    .line 2677
    :cond_0
    iget-object v0, p0, Lorg/zeam/Launcher;->mHomeButton:Landroid/widget/ImageButton;

    invoke-virtual {v0, v2}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 2678
    iget-object v0, p0, Lorg/zeam/Launcher;->mHomeButton:Landroid/widget/ImageButton;

    invoke-virtual {v0}, Landroid/widget/ImageButton;->bringToFront()V

    .line 2680
    iget-object v0, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    if-eqz v0, :cond_1

    .line 2681
    iget-object v0, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    invoke-virtual {v0}, Lorg/zeam/ScreenIndicator;->hide()V

    .line 2683
    :cond_1
    iput-boolean v3, p0, Lorg/zeam/Launcher;->mApplicationsGridOpen:Z

    .line 2685
    :cond_2
    return-void

    :cond_3
    move v1, v2

    .line 2672
    goto :goto_0
.end method

.method private openFolder(Lorg/zeam/FolderInfo;)V
    .locals 8
    .parameter "folderInfo"

    .prologue
    const/4 v3, 0x0

    .line 1998
    instance-of v0, p1, Lorg/zeam/UserFolderInfo;

    if-eqz v0, :cond_1

    .line 1999
    invoke-static {p0}, Lorg/zeam/UserFolder;->fromXml(Landroid/content/Context;)Lorg/zeam/UserFolder;

    move-result-object v1

    .line 2005
    .local v1, openFolder:Lorg/zeam/Folder;
    :goto_0
    iget-object v0, p0, Lorg/zeam/Launcher;->mDragLayer:Lorg/zeam/DragLayer;

    invoke-virtual {v1, v0}, Lorg/zeam/Folder;->setDragger(Lorg/zeam/DragController;)V

    .line 2006
    invoke-virtual {v1, p0}, Lorg/zeam/Folder;->setLauncher(Lorg/zeam/Launcher;)V

    .line 2007
    invoke-virtual {v1, p1}, Lorg/zeam/Folder;->bind(Lorg/zeam/FolderInfo;)V

    .line 2008
    const/4 v0, 0x1

    iput-boolean v0, p1, Lorg/zeam/FolderInfo;->opened:Z

    .line 2010
    iget-wide v4, p1, Lorg/zeam/FolderInfo;->container:J

    const-wide/16 v6, -0xc8

    cmp-long v0, v4, v6

    if-nez v0, :cond_2

    .line 2011
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget-object v2, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v2}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v2

    iget-object v4, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v4}, Lorg/zeam/Workspace;->getCurrentDesktopColumns()I

    move-result v5

    iget-object v4, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v4}, Lorg/zeam/Workspace;->getCurrentDesktopRows()I

    move-result v6

    move v4, v3

    invoke-virtual/range {v0 .. v6}, Lorg/zeam/Workspace;->addInScreen(Landroid/view/View;IIIII)V

    .line 2016
    :goto_1
    invoke-virtual {v1}, Lorg/zeam/Folder;->onOpen()V

    .line 2017
    invoke-direct {p0, v3}, Lorg/zeam/Launcher;->closeApplications(Z)V

    .line 2018
    .end local v1           #openFolder:Lorg/zeam/Folder;
    :cond_0
    return-void

    .line 2000
    :cond_1
    instance-of v0, p1, Lorg/zeam/LiveFolderInfo;

    if-eqz v0, :cond_0

    .line 2001
    invoke-static {p0, p1}, Lorg/zeam/LiveFolder;->fromXml(Landroid/content/Context;Lorg/zeam/FolderInfo;)Lorg/zeam/LiveFolder;

    move-result-object v1

    .restart local v1       #openFolder:Lorg/zeam/Folder;
    goto :goto_0

    .line 2013
    :cond_2
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget v2, p1, Lorg/zeam/FolderInfo;->screen:I

    iget-object v4, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v4}, Lorg/zeam/Workspace;->getCurrentDesktopColumns()I

    move-result v5

    iget-object v4, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v4}, Lorg/zeam/Workspace;->getCurrentDesktopRows()I

    move-result v6

    move v4, v3

    invoke-virtual/range {v0 .. v6}, Lorg/zeam/Workspace;->addInScreen(Landroid/view/View;IIIII)V

    goto :goto_1
.end method

.method private performAction(I)V
    .locals 3
    .parameter "actionId"

    .prologue
    const/4 v2, 0x0

    .line 2758
    packed-switch p1, :pswitch_data_0

    .line 2806
    :cond_0
    :goto_0
    :pswitch_0
    return-void

    .line 2762
    :pswitch_1
    invoke-virtual {p0}, Lorg/zeam/Launcher;->dismissPreviews()V

    .line 2763
    invoke-virtual {p0}, Lorg/zeam/Launcher;->isApplicationsGridOpen()Z

    move-result v1

    if-eqz v1, :cond_1

    .line 2764
    invoke-direct {p0}, Lorg/zeam/Launcher;->closeApplications()V

    goto :goto_0

    .line 2766
    :cond_1
    const/4 v1, 0x1

    invoke-direct {p0, v1}, Lorg/zeam/Launcher;->openApplicationsGrid(Z)V

    goto :goto_0

    .line 2770
    :pswitch_2
    invoke-virtual {p0}, Lorg/zeam/Launcher;->dismissPreviews()V

    .line 2771
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v1}, Lorg/zeam/Workspace;->isDefaultScreenShowing()Z

    move-result v1

    if-nez v1, :cond_0

    .line 2772
    new-instance v1, Lorg/zeam/Launcher$8;

    invoke-direct {v1, p0}, Lorg/zeam/Launcher$8;-><init>(Lorg/zeam/Launcher;)V

    new-array v2, v2, [Ljava/lang/Object;

    .line 2782
    invoke-virtual {v1, v2}, Lorg/zeam/Launcher$8;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto :goto_0

    .line 2786
    :pswitch_3
    invoke-virtual {p0}, Lorg/zeam/Launcher;->dismissPreviews()V

    .line 2787
    invoke-direct {p0}, Lorg/zeam/Launcher;->expandNotifications()V

    goto :goto_0

    .line 2790
    :pswitch_4
    iget-boolean v1, p0, Lorg/zeam/Launcher;->mPreviewsShowing:Z

    if-nez v1, :cond_2

    .line 2791
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget v1, v1, Lorg/zeam/Workspace;->mScreenCount:I

    invoke-virtual {p0, v2, v1}, Lorg/zeam/Launcher;->showPreviews(II)V

    goto :goto_0

    .line 2793
    :cond_2
    invoke-virtual {p0}, Lorg/zeam/Launcher;->dismissPreviews()V

    goto :goto_0

    .line 2797
    :pswitch_5
    invoke-direct {p0}, Lorg/zeam/Launcher;->toggleFullscreen()V

    goto :goto_0

    .line 2800
    :pswitch_6
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.DIAL"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 2801
    .local v0, dialerIntent:Landroid/content/Intent;
    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 2758
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
    .end packed-switch
.end method

.method private pickShortcut(II)V
    .locals 7
    .parameter "requestCode"
    .parameter "title"

    .prologue
    .line 2117
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 2118
    .local v0, bundle:Landroid/os/Bundle;
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 2120
    .local v3, shortcutNames:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/lang/String;>;"
    const v4, 0x7f0a005b

    invoke-virtual {p0, v4}, Lorg/zeam/Launcher;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 2121
    const-string v4, "android.intent.extra.shortcut.NAME"

    invoke-virtual {v0, v4, v3}, Landroid/os/Bundle;->putStringArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V

    .line 2122
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 2123
    .local v2, shortcutIcons:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/content/Intent$ShortcutIconResource;>;"
    const v4, 0x7f02000f

    invoke-static {p0, v4}, Landroid/content/Intent$ShortcutIconResource;->fromContext(Landroid/content/Context;I)Landroid/content/Intent$ShortcutIconResource;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 2124
    const-string v4, "android.intent.extra.shortcut.ICON_RESOURCE"

    invoke-virtual {v0, v4, v2}, Landroid/os/Bundle;->putParcelableArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V

    .line 2126
    new-instance v1, Landroid/content/Intent;

    const-string v4, "android.intent.action.PICK_ACTIVITY"

    invoke-direct {v1, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 2127
    .local v1, pickIntent:Landroid/content/Intent;
    const-string v4, "android.intent.extra.INTENT"

    new-instance v5, Landroid/content/Intent;

    const-string v6, "android.intent.action.CREATE_SHORTCUT"

    invoke-direct {v5, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 2128
    const-string v4, "android.intent.extra.TITLE"

    invoke-virtual {p0, p2}, Lorg/zeam/Launcher;->getText(I)Ljava/lang/CharSequence;

    move-result-object v5

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/CharSequence;)Landroid/content/Intent;

    .line 2129
    invoke-virtual {v1, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 2131
    invoke-virtual {p0, v1, p1}, Lorg/zeam/Launcher;->startActivityForResult(Landroid/content/Intent;I)V

    .line 2132
    return-void
.end method

.method private static readConfiguration(Landroid/content/Context;Lorg/zeam/Launcher$LocaleConfiguration;)V
    .locals 4
    .parameter "context"
    .parameter "localeConfiguration"

    .prologue
    .line 330
    if-nez p0, :cond_1

    .line 350
    :cond_0
    :goto_0
    return-void

    .line 331
    :cond_1
    const/4 v0, 0x0

    .line 333
    .local v0, dataInputStream:Ljava/io/DataInputStream;
    :try_start_0
    new-instance v1, Ljava/io/DataInputStream;

    const-string v2, "launcher.preferences"

    invoke-virtual {p0, v2}, Landroid/content/Context;->openFileInput(Ljava/lang/String;)Ljava/io/FileInputStream;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2

    .line 334
    .end local v0           #dataInputStream:Ljava/io/DataInputStream;
    .local v1, dataInputStream:Ljava/io/DataInputStream;
    :try_start_1
    invoke-virtual {v1}, Ljava/io/DataInputStream;->readUTF()Ljava/lang/String;

    move-result-object v2

    iput-object v2, p1, Lorg/zeam/Launcher$LocaleConfiguration;->locale:Ljava/lang/String;

    .line 335
    invoke-virtual {v1}, Ljava/io/DataInputStream;->readInt()I

    move-result v2

    iput v2, p1, Lorg/zeam/Launcher$LocaleConfiguration;->mcc:I

    .line 336
    invoke-virtual {v1}, Ljava/io/DataInputStream;->readInt()I

    move-result v2

    iput v2, p1, Lorg/zeam/Launcher$LocaleConfiguration;->mnc:I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_7
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_6

    .line 342
    if-eqz v1, :cond_3

    .line 344
    :try_start_2
    invoke-virtual {v1}, Ljava/io/DataInputStream;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_4

    move-object v0, v1

    .end local v1           #dataInputStream:Ljava/io/DataInputStream;
    .restart local v0       #dataInputStream:Ljava/io/DataInputStream;
    goto :goto_0

    .line 337
    :catch_0
    move-exception v2

    .line 342
    :goto_1
    if-eqz v0, :cond_0

    .line 344
    :try_start_3
    invoke-virtual {v0}, Ljava/io/DataInputStream;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1

    goto :goto_0

    .line 345
    :catch_1
    move-exception v2

    goto :goto_0

    .line 339
    :catch_2
    move-exception v2

    .line 342
    :goto_2
    if-eqz v0, :cond_0

    .line 344
    :try_start_4
    invoke-virtual {v0}, Ljava/io/DataInputStream;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_3

    goto :goto_0

    .line 345
    :catch_3
    move-exception v2

    goto :goto_0

    .line 341
    :catchall_0
    move-exception v2

    .line 342
    :goto_3
    if-eqz v0, :cond_2

    .line 344
    :try_start_5
    invoke-virtual {v0}, Ljava/io/DataInputStream;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_5

    .line 349
    :cond_2
    :goto_4
    throw v2

    .line 345
    .end local v0           #dataInputStream:Ljava/io/DataInputStream;
    .restart local v1       #dataInputStream:Ljava/io/DataInputStream;
    :catch_4
    move-exception v2

    move-object v0, v1

    .end local v1           #dataInputStream:Ljava/io/DataInputStream;
    .restart local v0       #dataInputStream:Ljava/io/DataInputStream;
    goto :goto_0

    :catch_5
    move-exception v3

    goto :goto_4

    .line 341
    .end local v0           #dataInputStream:Ljava/io/DataInputStream;
    .restart local v1       #dataInputStream:Ljava/io/DataInputStream;
    :catchall_1
    move-exception v2

    move-object v0, v1

    .end local v1           #dataInputStream:Ljava/io/DataInputStream;
    .restart local v0       #dataInputStream:Ljava/io/DataInputStream;
    goto :goto_3

    .line 339
    .end local v0           #dataInputStream:Ljava/io/DataInputStream;
    .restart local v1       #dataInputStream:Ljava/io/DataInputStream;
    :catch_6
    move-exception v2

    move-object v0, v1

    .end local v1           #dataInputStream:Ljava/io/DataInputStream;
    .restart local v0       #dataInputStream:Ljava/io/DataInputStream;
    goto :goto_2

    .line 337
    .end local v0           #dataInputStream:Ljava/io/DataInputStream;
    .restart local v1       #dataInputStream:Ljava/io/DataInputStream;
    :catch_7
    move-exception v2

    move-object v0, v1

    .end local v1           #dataInputStream:Ljava/io/DataInputStream;
    .restart local v0       #dataInputStream:Ljava/io/DataInputStream;
    goto :goto_1

    .end local v0           #dataInputStream:Ljava/io/DataInputStream;
    .restart local v1       #dataInputStream:Ljava/io/DataInputStream;
    :cond_3
    move-object v0, v1

    .end local v1           #dataInputStream:Ljava/io/DataInputStream;
    .restart local v0       #dataInputStream:Ljava/io/DataInputStream;
    goto :goto_0
.end method

.method private realAddWidget(Landroid/appwidget/AppWidgetProviderInfo;Lorg/zeam/CellLayout$CellInfo;[IIZ)V
    .locals 10
    .parameter "appWidgetInfo"
    .parameter "cellInfo"
    .parameter "spans"
    .parameter "appWidgetId"
    .parameter "insertAtFirst"

    .prologue
    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 2822
    iget-object v9, p0, Lorg/zeam/Launcher;->mCellCoordinates:[I

    .line 2823
    .local v9, xy:[I
    aget v0, p3, v7

    aget v2, p3, v8

    invoke-direct {p0, p2, v9, v0, v2}, Lorg/zeam/Launcher;->findSlot(Lorg/zeam/CellLayout$CellInfo;[III)Z

    move-result v0

    if-nez v0, :cond_1

    .line 2824
    const/4 v0, -0x1

    if-eq p4, v0, :cond_0

    .line 2825
    iget-object v0, p0, Lorg/zeam/Launcher;->mAppWidgetHost:Lorg/zeam/LauncherAppWidgetHost;

    invoke-virtual {v0, p4}, Lorg/zeam/LauncherAppWidgetHost;->deleteAppWidgetId(I)V

    .line 2848
    :cond_0
    :goto_0
    return-void

    .line 2830
    :cond_1
    new-instance v1, Lorg/zeam/LauncherAppWidgetInfo;

    invoke-direct {v1, p4}, Lorg/zeam/LauncherAppWidgetInfo;-><init>(I)V

    .line 2831
    .local v1, launcherAppWidgetInfo:Lorg/zeam/LauncherAppWidgetInfo;
    aget v0, p3, v7

    iput v0, v1, Lorg/zeam/LauncherAppWidgetInfo;->spanX:I

    .line 2832
    aget v0, p3, v8

    iput v0, v1, Lorg/zeam/LauncherAppWidgetInfo;->spanY:I

    .line 2834
    const-wide/16 v2, -0x64

    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v4

    aget v5, v9, v7

    aget v6, v9, v8

    move-object v0, p0

    invoke-static/range {v0 .. v7}, Lorg/zeam/LauncherModel;->addItemToDatabase(Landroid/content/Context;Lorg/zeam/ItemInfo;JIIIZ)V

    .line 2836
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mRestoring:Z

    if-nez v0, :cond_2

    .line 2838
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0, v1}, Lorg/zeam/LauncherModel;->addDesktopAppWidget(Lorg/zeam/LauncherAppWidgetInfo;)V

    .line 2839
    iget-object v0, p0, Lorg/zeam/Launcher;->mAppWidgetHost:Lorg/zeam/LauncherAppWidgetHost;

    invoke-virtual {v0, p0, p4, p1}, Lorg/zeam/LauncherAppWidgetHost;->createView(Landroid/content/Context;ILandroid/appwidget/AppWidgetProviderInfo;)Landroid/appwidget/AppWidgetHostView;

    move-result-object v0

    iput-object v0, v1, Lorg/zeam/LauncherAppWidgetInfo;->hostView:Landroid/appwidget/AppWidgetHostView;

    .line 2840
    iget-object v0, v1, Lorg/zeam/LauncherAppWidgetInfo;->hostView:Landroid/appwidget/AppWidgetHostView;

    invoke-virtual {v0, p4, p1}, Landroid/appwidget/AppWidgetHostView;->setAppWidget(ILandroid/appwidget/AppWidgetProviderInfo;)V

    .line 2841
    iget-object v0, v1, Lorg/zeam/LauncherAppWidgetInfo;->hostView:Landroid/appwidget/AppWidgetHostView;

    invoke-virtual {v0, v1}, Landroid/appwidget/AppWidgetHostView;->setTag(Ljava/lang/Object;)V

    .line 2843
    iget-object v2, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget-object v3, v1, Lorg/zeam/LauncherAppWidgetInfo;->hostView:Landroid/appwidget/AppWidgetHostView;

    aget v4, v9, v7

    aget v5, v9, v8

    iget v6, v1, Lorg/zeam/LauncherAppWidgetInfo;->spanX:I

    iget v7, v1, Lorg/zeam/LauncherAppWidgetInfo;->spanY:I

    move v8, p5

    invoke-virtual/range {v2 .. v8}, Lorg/zeam/Workspace;->addInCurrentScreen(Landroid/view/View;IIIIZ)V

    goto :goto_0

    .line 2845
    :cond_2
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0}, Lorg/zeam/LauncherModel;->isDesktopLoaded()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2846
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0, v1}, Lorg/zeam/LauncherModel;->addDesktopAppWidget(Lorg/zeam/LauncherAppWidgetInfo;)V

    goto :goto_0
.end method

.method private registerContentObservers()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 1584
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 1585
    .local v0, resolver:Landroid/content/ContentResolver;
    sget-object v1, Lorg/zeam/LauncherSettings$Favorites;->CONTENT_URI:Landroid/net/Uri;

    iget-object v2, p0, Lorg/zeam/Launcher;->mObserver:Landroid/database/ContentObserver;

    invoke-virtual {v0, v1, v3, v2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V

    .line 1586
    sget-object v1, Lorg/zeam/LauncherProvider;->CONTENT_APPWIDGET_RESET_URI:Landroid/net/Uri;

    iget-object v2, p0, Lorg/zeam/Launcher;->mWidgetObserver:Landroid/database/ContentObserver;

    invoke-virtual {v0, v1, v3, v2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V

    .line 1587
    return-void
.end method

.method private registerIntentReceivers()V
    .locals 4

    .prologue
    .line 1557
    sget-object v3, Lorg/zeam/Launcher;->sWallpaperReceiver:Lorg/zeam/Launcher$WallpaperIntentReceiver;

    if-nez v3, :cond_0

    .line 1559
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getApplication()Landroid/app/Application;

    move-result-object v0

    .line 1560
    .local v0, application:Landroid/app/Application;
    new-instance v3, Lorg/zeam/Launcher$WallpaperIntentReceiver;

    invoke-direct {v3, v0, p0}, Lorg/zeam/Launcher$WallpaperIntentReceiver;-><init>(Landroid/app/Application;Lorg/zeam/Launcher;)V

    sput-object v3, Lorg/zeam/Launcher;->sWallpaperReceiver:Lorg/zeam/Launcher$WallpaperIntentReceiver;

    .line 1561
    new-instance v1, Landroid/content/IntentFilter;

    const-string v3, "android.intent.action.WALLPAPER_CHANGED"

    invoke-direct {v1, v3}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    .line 1562
    .local v1, filter:Landroid/content/IntentFilter;
    sget-object v3, Lorg/zeam/Launcher;->sWallpaperReceiver:Lorg/zeam/Launcher$WallpaperIntentReceiver;

    invoke-virtual {v0, v3, v1}, Landroid/app/Application;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 1567
    .end local v0           #application:Landroid/app/Application;
    .end local v1           #filter:Landroid/content/IntentFilter;
    :goto_0
    new-instance v2, Landroid/content/IntentFilter;

    const-string v3, "android.intent.action.PACKAGE_ADDED"

    invoke-direct {v2, v3}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    .line 1568
    .local v2, intentFilter:Landroid/content/IntentFilter;
    const-string v3, "android.intent.action.PACKAGE_REMOVED"

    invoke-virtual {v2, v3}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 1569
    const-string v3, "android.intent.action.PACKAGE_CHANGED"

    invoke-virtual {v2, v3}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 1570
    const-string v3, "package"

    invoke-virtual {v2, v3}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 1571
    iget-object v3, p0, Lorg/zeam/Launcher;->mApplicationsReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v3, v2}, Lorg/zeam/Launcher;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 1573
    new-instance v2, Landroid/content/IntentFilter;

    .end local v2           #intentFilter:Landroid/content/IntentFilter;
    const-string v3, "android.intent.action.CLOSE_SYSTEM_DIALOGS"

    invoke-direct {v2, v3}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    .line 1574
    .restart local v2       #intentFilter:Landroid/content/IntentFilter;
    iget-object v3, p0, Lorg/zeam/Launcher;->mCloseSystemDialogsReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v3, v2}, Lorg/zeam/Launcher;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 1576
    new-instance v2, Landroid/content/IntentFilter;

    .end local v2           #intentFilter:Landroid/content/IntentFilter;
    invoke-direct {v2}, Landroid/content/IntentFilter;-><init>()V

    .line 1577
    .restart local v2       #intentFilter:Landroid/content/IntentFilter;
    const-string v3, "android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE"

    invoke-virtual {v2, v3}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 1578
    const-string v3, "android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE"

    invoke-virtual {v2, v3}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 1579
    iget-object v3, p0, Lorg/zeam/Launcher;->mApplicationsReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v3, v2}, Lorg/zeam/Launcher;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 1580
    return-void

    .line 1564
    .end local v2           #intentFilter:Landroid/content/IntentFilter;
    :cond_0
    sget-object v3, Lorg/zeam/Launcher;->sWallpaperReceiver:Lorg/zeam/Launcher$WallpaperIntentReceiver;

    invoke-virtual {v3, p0}, Lorg/zeam/Launcher$WallpaperIntentReceiver;->setLauncher(Lorg/zeam/Launcher;)V

    goto :goto_0
.end method

.method private removeShortcutsForPackage(Ljava/lang/String;)V
    .locals 1
    .parameter "packageName"

    .prologue
    .line 1322
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    .line 1323
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0, p1}, Lorg/zeam/Workspace;->removeShortcutsForPackage(Ljava/lang/String;)V

    .line 1324
    iget-object v0, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    invoke-virtual {v0, p1}, Lorg/zeam/Dock;->removeShortcutsForPackage(Ljava/lang/String;)V

    .line 1326
    :cond_0
    return-void
.end method

.method private restoreState(Landroid/os/Bundle;)V
    .locals 10
    .parameter "savedState"

    .prologue
    const/4 v9, 0x1

    const/4 v7, -0x1

    .line 551
    if-nez p1, :cond_1

    .line 583
    :cond_0
    :goto_0
    return-void

    .line 554
    :cond_1
    const-string v6, "launcher.current_screen"

    invoke-virtual {p1, v6, v7}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v2

    .line 555
    .local v2, currentScreen:I
    if-le v2, v7, :cond_2

    .line 556
    iget-object v6, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v6, v2}, Lorg/zeam/Workspace;->setCurrentScreen(I)V

    .line 558
    :cond_2
    const-string v6, "launcher.add_screen"

    invoke-virtual {p1, v6, v7}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v1

    .line 559
    .local v1, addScreen:I
    if-le v1, v7, :cond_3

    .line 561
    new-instance v6, Lorg/zeam/CellLayout$CellInfo;

    invoke-direct {v6}, Lorg/zeam/CellLayout$CellInfo;-><init>()V

    iput-object v6, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    .line 562
    iget-object v0, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    .line 563
    .local v0, addItemCellInfo:Lorg/zeam/CellLayout$CellInfo;
    iput-boolean v9, v0, Lorg/zeam/CellLayout$CellInfo;->valid:Z

    .line 564
    iput v1, v0, Lorg/zeam/CellLayout$CellInfo;->screen:I

    .line 565
    const-string v6, "launcher.add_cellX"

    invoke-virtual {p1, v6}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v6

    iput v6, v0, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    .line 566
    const-string v6, "launcher.add_cellY"

    invoke-virtual {p1, v6}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v6

    iput v6, v0, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    .line 567
    const-string v6, "launcher.add_spanX"

    invoke-virtual {p1, v6}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v6

    iput v6, v0, Lorg/zeam/CellLayout$CellInfo;->spanX:I

    .line 568
    const-string v6, "launcher.add_spanY"

    invoke-virtual {p1, v6}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v6

    iput v6, v0, Lorg/zeam/CellLayout$CellInfo;->spanY:I

    .line 570
    const-string v6, "launcher.add_occupied_cells"

    invoke-virtual {p1, v6}, Landroid/os/Bundle;->getBooleanArray(Ljava/lang/String;)[Z

    move-result-object v6

    .line 571
    const-string v7, "launcher.add_countX"

    invoke-virtual {p1, v7}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v7

    .line 572
    const-string v8, "launcher.add_countY"

    invoke-virtual {p1, v8}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v8

    .line 569
    invoke-virtual {v0, v6, v7, v8}, Lorg/zeam/CellLayout$CellInfo;->findVacantCellsFromOccupied([ZII)V

    .line 574
    iput-boolean v9, p0, Lorg/zeam/Launcher;->mRestoring:Z

    .line 577
    .end local v0           #addItemCellInfo:Lorg/zeam/CellLayout$CellInfo;
    :cond_3
    const-string v6, "launcher.rename_folder"

    const/4 v7, 0x0

    invoke-virtual {p1, v6, v7}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v5

    .line 578
    .local v5, renameFolder:Z
    if-eqz v5, :cond_0

    .line 579
    const-string v6, "launcher.rename_folder_id"

    invoke-virtual {p1, v6}, Landroid/os/Bundle;->getLong(Ljava/lang/String;)J

    move-result-wide v3

    .line 580
    .local v3, id:J
    sget-object v6, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v6, p0, v3, v4}, Lorg/zeam/LauncherModel;->getFolderById(Landroid/content/Context;J)Lorg/zeam/FolderInfo;

    move-result-object v6

    iput-object v6, p0, Lorg/zeam/Launcher;->mFolderInfo:Lorg/zeam/FolderInfo;

    .line 581
    iput-boolean v9, p0, Lorg/zeam/Launcher;->mRestoring:Z

    goto :goto_0
.end method

.method private setFullscreen(Z)V
    .locals 1
    .parameter "fullscreen"

    .prologue
    .line 285
    const/4 v0, 0x1

    invoke-direct {p0, p1, v0}, Lorg/zeam/Launcher;->setFullscreen(ZZ)V

    .line 286
    return-void
.end method

.method private setFullscreen(ZZ)V
    .locals 2
    .parameter "fullscreen"
    .parameter "save"

    .prologue
    const/16 v1, 0x400

    .line 273
    if-eqz p1, :cond_1

    .line 274
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v1, v1}, Landroid/view/Window;->setFlags(II)V

    .line 278
    :goto_0
    iput-boolean p1, p0, Lorg/zeam/Launcher;->mFullscreen:Z

    .line 279
    if-eqz p2, :cond_0

    .line 280
    invoke-static {p0, p1}, Lorg/zeam/PreferencesUtil;->setFullscreenEnabled(Landroid/content/Context;Z)V

    .line 282
    :cond_0
    return-void

    .line 276
    :cond_1
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V

    goto :goto_0
.end method

.method private setRequestedFullscreen()V
    .locals 1

    .prologue
    .line 255
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->isFullscreenEnabled(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 256
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->setFullscreen(Z)V

    .line 260
    :goto_0
    return-void

    .line 258
    :cond_0
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->setFullscreen(Z)V

    goto :goto_0
.end method

.method private setRequestedOrientation()V
    .locals 1

    .prologue
    .line 246
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->useSensorOrientation(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 247
    const/4 v0, 0x4

    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->setRequestedOrientation(I)V

    .line 251
    :goto_0
    return-void

    .line 249
    :cond_0
    const/4 v0, 0x5

    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->setRequestedOrientation(I)V

    goto :goto_0
.end method

.method static setScreen(I)V
    .locals 2
    .parameter "screen"

    .prologue
    .line 387
    sget-object v0, Lorg/zeam/Launcher;->sLock:Ljava/lang/Object;

    monitor-enter v0

    .line 388
    :try_start_0
    sput p0, Lorg/zeam/Launcher;->sScreen:I

    .line 387
    monitor-exit v0

    .line 390
    return-void

    .line 387
    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method private setWallpaperDimension()V
    .locals 7

    .prologue
    .line 401
    const-string v5, "wallpaper"

    invoke-virtual {p0, v5}, Lorg/zeam/Launcher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/app/WallpaperManager;

    .line 402
    .local v4, wallpaperManager:Landroid/app/WallpaperManager;
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v5

    invoke-interface {v5}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    .line 404
    .local v0, defaultDisplay:Landroid/view/Display;
    invoke-virtual {v0}, Landroid/view/Display;->getWidth()I

    move-result v5

    invoke-virtual {v0}, Landroid/view/Display;->getHeight()I

    move-result v6

    if-ge v5, v6, :cond_0

    const/4 v5, 0x1

    move v3, v5

    .line 405
    .local v3, isPortrait:Z
    :goto_0
    if-eqz v3, :cond_1

    invoke-virtual {v0}, Landroid/view/Display;->getWidth()I

    move-result v5

    move v2, v5

    .line 406
    .local v2, displayWidth:I
    :goto_1
    if-eqz v3, :cond_2

    invoke-virtual {v0}, Landroid/view/Display;->getHeight()I

    move-result v5

    move v1, v5

    .line 407
    .local v1, displayHeight:I
    :goto_2
    mul-int/lit8 v5, v2, 0x2

    invoke-virtual {v4, v5, v1}, Landroid/app/WallpaperManager;->suggestDesiredDimensions(II)V

    .line 408
    return-void

    .line 404
    .end local v1           #displayHeight:I
    .end local v2           #displayWidth:I
    .end local v3           #isPortrait:Z
    :cond_0
    const/4 v5, 0x0

    move v3, v5

    goto :goto_0

    .line 405
    .restart local v3       #isPortrait:Z
    :cond_1
    invoke-virtual {v0}, Landroid/view/Display;->getHeight()I

    move-result v5

    move v2, v5

    goto :goto_1

    .line 406
    .restart local v2       #displayWidth:I
    :cond_2
    invoke-virtual {v0}, Landroid/view/Display;->getWidth()I

    move-result v5

    move v1, v5

    goto :goto_2
.end method

.method private setupViews()V
    .locals 8

    .prologue
    const v7, 0x7f030006

    .line 587
    const v6, 0x7f06000e

    invoke-virtual {p0, v6}, Lorg/zeam/Launcher;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lorg/zeam/DragLayer;

    iput-object v6, p0, Lorg/zeam/Launcher;->mDragLayer:Lorg/zeam/DragLayer;

    .line 588
    iget-object v4, p0, Lorg/zeam/Launcher;->mDragLayer:Lorg/zeam/DragLayer;

    .line 589
    .local v4, dragLayer:Lorg/zeam/DragLayer;
    const v6, 0x7f06000f

    invoke-virtual {v4, v6}, Lorg/zeam/DragLayer;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lorg/zeam/Workspace;

    iput-object v6, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    .line 590
    iget-object v5, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    .line 592
    .local v5, workspace:Lorg/zeam/Workspace;
    const v6, 0x7f060017

    invoke-virtual {v4, v6}, Lorg/zeam/DragLayer;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/ViewStub;

    .line 593
    .local v1, appsGridStub:Landroid/view/ViewStub;
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridType(Landroid/content/Context;)I

    move-result v6

    packed-switch v6, :pswitch_data_0

    .line 601
    invoke-virtual {v1, v7}, Landroid/view/ViewStub;->setLayoutResource(I)V

    .line 604
    :goto_0
    invoke-virtual {v1}, Landroid/view/ViewStub;->inflate()Landroid/view/View;

    move-result-object v6

    check-cast v6, Lorg/zeam/ApplicationsView;

    iput-object v6, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    .line 605
    iget-object v0, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    .line 607
    .local v0, applicationsView:Lorg/zeam/ApplicationsView;
    const v6, 0x7f06001a

    invoke-virtual {v4, v6}, Lorg/zeam/DragLayer;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/view/ViewStub;

    .line 608
    .local v3, dockbarStub:Landroid/view/ViewStub;
    const v6, 0x7f03000b

    invoke-virtual {v3, v6}, Landroid/view/ViewStub;->setLayoutResource(I)V

    .line 609
    invoke-virtual {v3}, Landroid/view/ViewStub;->inflate()Landroid/view/View;

    .line 611
    const v6, 0x7f060019

    invoke-virtual {p0, v6}, Lorg/zeam/Launcher;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageButton;

    iput-object v6, p0, Lorg/zeam/Launcher;->mHomeButton:Landroid/widget/ImageButton;

    .line 612
    iget-object v6, p0, Lorg/zeam/Launcher;->mHomeButton:Landroid/widget/ImageButton;

    new-instance v7, Lorg/zeam/Launcher$2;

    invoke-direct {v7, p0}, Lorg/zeam/Launcher$2;-><init>(Lorg/zeam/Launcher;)V

    invoke-virtual {v6, v7}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 621
    const v6, 0x7f06001c

    invoke-virtual {v4, v6}, Lorg/zeam/DragLayer;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lorg/zeam/DeleteZone;

    .line 622
    .local v2, deleteZone:Lorg/zeam/DeleteZone;
    invoke-interface {v0, v4}, Lorg/zeam/ApplicationsView;->setDragController(Lorg/zeam/DragController;)V

    .line 623
    invoke-interface {v0, p0}, Lorg/zeam/ApplicationsView;->setLauncher(Lorg/zeam/Launcher;)V

    .line 625
    invoke-virtual {v5, p0}, Lorg/zeam/Workspace;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    .line 626
    invoke-virtual {v5, v4}, Lorg/zeam/Workspace;->setDragger(Lorg/zeam/DragController;)V

    .line 627
    invoke-virtual {v5, p0}, Lorg/zeam/Workspace;->setLauncher(Lorg/zeam/Launcher;)V

    .line 629
    invoke-virtual {v2, p0}, Lorg/zeam/DeleteZone;->setLauncher(Lorg/zeam/Launcher;)V

    .line 630
    invoke-virtual {v2, v4}, Lorg/zeam/DeleteZone;->setDragController(Lorg/zeam/DragLayer;)V

    .line 631
    invoke-interface {v0}, Lorg/zeam/ApplicationsView;->getImplementingView()Landroid/view/View;

    move-result-object v6

    invoke-virtual {v4, v6}, Lorg/zeam/DragLayer;->setIgnoredDropTarget(Landroid/view/View;)V

    .line 632
    invoke-virtual {v4, v5}, Lorg/zeam/DragLayer;->setDragScoller(Lorg/zeam/DragScroller;)V

    .line 633
    invoke-virtual {v4, v2}, Lorg/zeam/DragLayer;->addDragListener(Lorg/zeam/DragController$DragListener;)V

    .line 635
    const v6, 0x7f06001b

    invoke-virtual {v4, v6}, Lorg/zeam/DragLayer;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lorg/zeam/Dock;

    iput-object v6, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    .line 636
    iget-object v6, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    invoke-virtual {v6, v4}, Lorg/zeam/Dock;->setDragger(Lorg/zeam/DragController;)V

    .line 637
    iget-object v6, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    invoke-virtual {v6, p0}, Lorg/zeam/Dock;->setLauncher(Lorg/zeam/Launcher;)V

    .line 639
    iget-object v6, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    invoke-virtual {v4, v6}, Lorg/zeam/DragLayer;->addDragListener(Lorg/zeam/DragController$DragListener;)V

    .line 640
    new-instance v6, Landroid/view/View;

    invoke-direct {v6, p0}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    invoke-virtual {v2, v6}, Lorg/zeam/DeleteZone;->setHandle(Landroid/view/View;)V

    .line 642
    const v6, 0x7f06001d

    invoke-virtual {p0, v6}, Lorg/zeam/Launcher;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lorg/zeam/ScreenIndicator;

    iput-object v6, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    .line 643
    return-void

    .line 595
    .end local v0           #applicationsView:Lorg/zeam/ApplicationsView;
    .end local v2           #deleteZone:Lorg/zeam/DeleteZone;
    .end local v3           #dockbarStub:Landroid/view/ViewStub;
    :pswitch_0
    const v6, 0x7f030004

    invoke-virtual {v1, v6}, Landroid/view/ViewStub;->setLayoutResource(I)V

    goto/16 :goto_0

    .line 598
    :pswitch_1
    invoke-virtual {v1, v7}, Landroid/view/ViewStub;->setLayoutResource(I)V

    goto/16 :goto_0

    .line 593
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method private showAddDialog(Lorg/zeam/CellLayout$CellInfo;)V
    .locals 1
    .parameter "cellInfo"

    .prologue
    .line 2103
    iput-object p1, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    .line 2104
    const/4 v0, 0x1

    iput-boolean v0, p0, Lorg/zeam/Launcher;->mWaitingForResult:Z

    .line 2105
    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->showDialog(I)V

    .line 2106
    return-void
.end method

.method private showLauncherDialog(Lorg/zeam/CellLayout$CellInfo;)V
    .locals 1
    .parameter "cellInfo"

    .prologue
    const/4 v0, 0x1

    .line 2110
    iput-object p1, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    .line 2111
    iput-boolean v0, p0, Lorg/zeam/Launcher;->mWaitingForResult:Z

    .line 2112
    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->showDialog(I)V

    .line 2113
    return-void
.end method

.method private startLoaders()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 394
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    iget-object v1, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    invoke-virtual {v0, v1}, Lorg/zeam/LauncherModel;->loadApplications(Lorg/zeam/ApplicationsView;)V

    .line 395
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    iget-boolean v1, p0, Lorg/zeam/Launcher;->mLocaleChanged:Z

    if-eqz v1, :cond_0

    move v1, v3

    :goto_0
    iget-boolean v2, p0, Lorg/zeam/Launcher;->mLocaleChanged:Z

    invoke-virtual {v0, v1, p0, v2}, Lorg/zeam/LauncherModel;->loadUserItems(ZLorg/zeam/Launcher;Z)V

    .line 396
    iput-boolean v3, p0, Lorg/zeam/Launcher;->mRestoring:Z

    .line 397
    return-void

    .line 395
    :cond_0
    const/4 v1, 0x1

    goto :goto_0
.end method

.method private startPreferences()V
    .locals 2

    .prologue
    .line 2557
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lorg/zeam/Preferences;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->startActivity(Landroid/content/Intent;)V

    .line 2558
    return-void
.end method

.method private startWallpaperChooser()V
    .locals 8

    .prologue
    const/4 v7, 0x0

    .line 1542
    new-instance v2, Landroid/content/Intent;

    const-string v5, "android.intent.action.SET_WALLPAPER"

    invoke-direct {v2, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 1543
    .local v2, pickWallpaper:Landroid/content/Intent;
    const v5, 0x7f0a004c

    invoke-virtual {p0, v5}, Lorg/zeam/Launcher;->getText(I)Ljava/lang/CharSequence;

    move-result-object v5

    invoke-static {v2, v5}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object v0

    .line 1544
    .local v0, chooser:Landroid/content/Intent;
    const-string v5, "wallpaper"

    invoke-virtual {p0, v5}, Lorg/zeam/Launcher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/app/WallpaperManager;

    .line 1545
    .local v4, wallpaperManager:Landroid/app/WallpaperManager;
    invoke-virtual {v4}, Landroid/app/WallpaperManager;->getWallpaperInfo()Landroid/app/WallpaperInfo;

    move-result-object v3

    .line 1547
    .local v3, wallpaperInfo:Landroid/app/WallpaperInfo;
    if-eqz v3, :cond_0

    invoke-virtual {v3}, Landroid/app/WallpaperInfo;->getSettingsActivity()Ljava/lang/String;

    move-result-object v5

    if-eqz v5, :cond_0

    .line 1548
    new-instance v1, Landroid/content/pm/LabeledIntent;

    invoke-virtual {p0}, Lorg/zeam/Launcher;->getPackageName()Ljava/lang/String;

    move-result-object v5

    const v6, 0x7f0a0051

    invoke-direct {v1, v5, v6, v7}, Landroid/content/pm/LabeledIntent;-><init>(Ljava/lang/String;II)V

    .line 1549
    .local v1, labelledIntent:Landroid/content/pm/LabeledIntent;
    invoke-virtual {v3}, Landroid/app/WallpaperInfo;->getPackageName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3}, Landroid/app/WallpaperInfo;->getSettingsActivity()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v1, v5, v6}, Landroid/content/pm/LabeledIntent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1550
    const-string v5, "android.intent.extra.INITIAL_INTENTS"

    const/4 v6, 0x1

    new-array v6, v6, [Landroid/content/Intent;

    aput-object v1, v6, v7

    invoke-virtual {v0, v5, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 1552
    .end local v1           #labelledIntent:Landroid/content/pm/LabeledIntent;
    :cond_0
    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->startActivity(Landroid/content/Intent;)V

    .line 1553
    return-void
.end method

.method private toggleFullscreen()V
    .locals 1

    .prologue
    .line 264
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->isFullscreenEnabled(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 265
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->setFullscreen(Z)V

    .line 269
    :goto_0
    return-void

    .line 267
    :cond_0
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->setFullscreen(Z)V

    goto :goto_0
.end method

.method private updateShortcutsForPackage(Ljava/lang/String;)V
    .locals 1
    .parameter "packageName"

    .prologue
    .line 1330
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    .line 1331
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0, p1}, Lorg/zeam/Workspace;->updateShortcutsForPackage(Ljava/lang/String;)V

    .line 1332
    iget-object v0, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    invoke-virtual {v0, p1}, Lorg/zeam/Dock;->updateShortcutsForPackage(Ljava/lang/String;)V

    .line 1334
    :cond_0
    return-void
.end method

.method private static writeConfiguration(Landroid/content/Context;Lorg/zeam/Launcher$LocaleConfiguration;)V
    .locals 5
    .parameter "context"
    .parameter "localeConfiguration"

    .prologue
    .line 355
    if-nez p0, :cond_1

    .line 376
    :cond_0
    :goto_0
    return-void

    .line 356
    :cond_1
    const/4 v0, 0x0

    .line 358
    .local v0, dataOutputStream:Ljava/io/DataOutputStream;
    :try_start_0
    new-instance v1, Ljava/io/DataOutputStream;

    const-string v3, "launcher.preferences"

    const/4 v4, 0x0

    invoke-virtual {p0, v3, v4}, Landroid/content/Context;->openFileOutput(Ljava/lang/String;I)Ljava/io/FileOutputStream;

    move-result-object v3

    invoke-direct {v1, v3}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2

    .line 359
    .end local v0           #dataOutputStream:Ljava/io/DataOutputStream;
    .local v1, dataOutputStream:Ljava/io/DataOutputStream;
    :try_start_1
    iget-object v3, p1, Lorg/zeam/Launcher$LocaleConfiguration;->locale:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/io/DataOutputStream;->writeUTF(Ljava/lang/String;)V

    .line 360
    iget v3, p1, Lorg/zeam/Launcher$LocaleConfiguration;->mcc:I

    invoke-virtual {v1, v3}, Ljava/io/DataOutputStream;->writeInt(I)V

    .line 361
    iget v3, p1, Lorg/zeam/Launcher$LocaleConfiguration;->mnc:I

    invoke-virtual {v1, v3}, Ljava/io/DataOutputStream;->writeInt(I)V

    .line 362
    invoke-virtual {v1}, Ljava/io/DataOutputStream;->flush()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_7
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_6

    .line 368
    if-eqz v1, :cond_3

    .line 370
    :try_start_2
    invoke-virtual {v1}, Ljava/io/DataOutputStream;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_4

    move-object v0, v1

    .end local v1           #dataOutputStream:Ljava/io/DataOutputStream;
    .restart local v0       #dataOutputStream:Ljava/io/DataOutputStream;
    goto :goto_0

    .line 363
    :catch_0
    move-exception v3

    .line 368
    :goto_1
    if-eqz v0, :cond_0

    .line 370
    :try_start_3
    invoke-virtual {v0}, Ljava/io/DataOutputStream;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1

    goto :goto_0

    .line 371
    :catch_1
    move-exception v3

    goto :goto_0

    .line 365
    :catch_2
    move-exception v3

    move-object v2, v3

    .line 366
    .local v2, e:Ljava/io/IOException;
    :goto_2
    :try_start_4
    const-string v3, "launcher.preferences"

    invoke-virtual {p0, v3}, Landroid/content/Context;->getFileStreamPath(Ljava/lang/String;)Ljava/io/File;

    move-result-object v3

    invoke-virtual {v3}, Ljava/io/File;->delete()Z
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 368
    if-eqz v0, :cond_0

    .line 370
    :try_start_5
    invoke-virtual {v0}, Ljava/io/DataOutputStream;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3

    goto :goto_0

    .line 371
    :catch_3
    move-exception v3

    goto :goto_0

    .line 367
    .end local v2           #e:Ljava/io/IOException;
    :catchall_0
    move-exception v3

    .line 368
    :goto_3
    if-eqz v0, :cond_2

    .line 370
    :try_start_6
    invoke-virtual {v0}, Ljava/io/DataOutputStream;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_5

    .line 375
    :cond_2
    :goto_4
    throw v3

    .line 371
    .end local v0           #dataOutputStream:Ljava/io/DataOutputStream;
    .restart local v1       #dataOutputStream:Ljava/io/DataOutputStream;
    :catch_4
    move-exception v3

    move-object v0, v1

    .end local v1           #dataOutputStream:Ljava/io/DataOutputStream;
    .restart local v0       #dataOutputStream:Ljava/io/DataOutputStream;
    goto :goto_0

    :catch_5
    move-exception v4

    goto :goto_4

    .line 367
    .end local v0           #dataOutputStream:Ljava/io/DataOutputStream;
    .restart local v1       #dataOutputStream:Ljava/io/DataOutputStream;
    :catchall_1
    move-exception v3

    move-object v0, v1

    .end local v1           #dataOutputStream:Ljava/io/DataOutputStream;
    .restart local v0       #dataOutputStream:Ljava/io/DataOutputStream;
    goto :goto_3

    .line 365
    .end local v0           #dataOutputStream:Ljava/io/DataOutputStream;
    .restart local v1       #dataOutputStream:Ljava/io/DataOutputStream;
    :catch_6
    move-exception v3

    move-object v2, v3

    move-object v0, v1

    .end local v1           #dataOutputStream:Ljava/io/DataOutputStream;
    .restart local v0       #dataOutputStream:Ljava/io/DataOutputStream;
    goto :goto_2

    .line 363
    .end local v0           #dataOutputStream:Ljava/io/DataOutputStream;
    .restart local v1       #dataOutputStream:Ljava/io/DataOutputStream;
    :catch_7
    move-exception v3

    move-object v0, v1

    .end local v1           #dataOutputStream:Ljava/io/DataOutputStream;
    .restart local v0       #dataOutputStream:Ljava/io/DataOutputStream;
    goto :goto_1

    .end local v0           #dataOutputStream:Ljava/io/DataOutputStream;
    .restart local v1       #dataOutputStream:Ljava/io/DataOutputStream;
    :cond_3
    move-object v0, v1

    .end local v1           #dataOutputStream:Ljava/io/DataOutputStream;
    .restart local v0       #dataOutputStream:Ljava/io/DataOutputStream;
    goto :goto_0
.end method


# virtual methods
.method addAppWidget(Landroid/content/Intent;)V
    .locals 7
    .parameter "data"

    .prologue
    const/4 v6, 0x5

    const/4 v5, -0x1

    .line 1338
    const-string v3, "appWidgetId"

    invoke-virtual {p1, v3, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    .line 1339
    .local v1, appWidgetId:I
    const-string v3, "search_widget"

    const-string v4, "custom_widget"

    invoke-virtual {p1, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 1340
    iget-object v3, p0, Lorg/zeam/Launcher;->mAppWidgetHost:Lorg/zeam/LauncherAppWidgetHost;

    invoke-virtual {v3, v1}, Lorg/zeam/LauncherAppWidgetHost;->deleteAppWidgetId(I)V

    .line 1341
    invoke-virtual {p0}, Lorg/zeam/Launcher;->addSearch()V

    .line 1356
    :goto_0
    return-void

    .line 1344
    :cond_0
    iget-object v3, p0, Lorg/zeam/Launcher;->mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

    invoke-virtual {v3, v1}, Landroid/appwidget/AppWidgetManager;->getAppWidgetInfo(I)Landroid/appwidget/AppWidgetProviderInfo;

    move-result-object v0

    .line 1345
    .local v0, appWidget:Landroid/appwidget/AppWidgetProviderInfo;
    iget-object v3, v0, Landroid/appwidget/AppWidgetProviderInfo;->configure:Landroid/content/ComponentName;

    if-eqz v3, :cond_1

    .line 1347
    new-instance v2, Landroid/content/Intent;

    const-string v3, "android.appwidget.action.APPWIDGET_CONFIGURE"

    invoke-direct {v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 1348
    .local v2, intent:Landroid/content/Intent;
    const-string v3, "appWidgetId"

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1349
    iget-object v3, v0, Landroid/appwidget/AppWidgetProviderInfo;->configure:Landroid/content/ComponentName;

    invoke-virtual {v2, v3}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    .line 1351
    invoke-virtual {p0, v2, v6}, Lorg/zeam/Launcher;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 1353
    .end local v2           #intent:Landroid/content/Intent;
    :cond_1
    invoke-virtual {p0, v6, v5, p1}, Lorg/zeam/Launcher;->onActivityResult(IILandroid/content/Intent;)V

    goto :goto_0
.end method

.method addFolder(Z)V
    .locals 10
    .parameter "insertAtFirst"

    .prologue
    const/4 v8, 0x1

    const/4 v2, -0x1

    .line 1416
    iget-object v9, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    .line 1417
    .local v9, cellInfo:Lorg/zeam/CellLayout$CellInfo;
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v0

    iput v0, v9, Lorg/zeam/CellLayout$CellInfo;->screen:I

    .line 1418
    iget v0, v9, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    if-eq v0, v2, :cond_0

    iget v0, v9, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    if-ne v0, v2, :cond_1

    .line 1419
    :cond_0
    invoke-direct {p0, v9}, Lorg/zeam/Launcher;->findSingleSlot(Lorg/zeam/CellLayout$CellInfo;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 1434
    :goto_0
    return-void

    .line 1423
    :cond_1
    new-instance v1, Lorg/zeam/UserFolderInfo;

    invoke-direct {v1}, Lorg/zeam/UserFolderInfo;-><init>()V

    .line 1424
    .local v1, folderInfo:Lorg/zeam/UserFolderInfo;
    const v0, 0x7f0a004b

    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    iput-object v0, v1, Lorg/zeam/UserFolderInfo;->title:Ljava/lang/CharSequence;

    .line 1426
    const-wide/16 v2, -0x64

    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v4

    iget v5, v9, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    iget v6, v9, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    const/4 v7, 0x0

    move-object v0, p0

    invoke-static/range {v0 .. v7}, Lorg/zeam/LauncherModel;->addItemToDatabase(Landroid/content/Context;Lorg/zeam/ItemInfo;JIIIZ)V

    .line 1428
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0, v1}, Lorg/zeam/LauncherModel;->addDesktopItem(Lorg/zeam/ItemInfo;)V

    .line 1429
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0, v1}, Lorg/zeam/LauncherModel;->addFolder(Lorg/zeam/FolderInfo;)V

    .line 1431
    const v2, 0x7f03000c

    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget-object v4, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v4}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v4

    invoke-virtual {v0, v4}, Lorg/zeam/Workspace;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-static {v2, p0, v0, v1}, Lorg/zeam/FolderIcon;->fromXml(ILorg/zeam/Launcher;Landroid/view/ViewGroup;Lorg/zeam/UserFolderInfo;)Lorg/zeam/FolderIcon;

    move-result-object v3

    .line 1433
    .local v3, newFolder:Lorg/zeam/FolderIcon;
    iget-object v2, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget v4, v9, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    iget v5, v9, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    move v6, v8

    move v7, v8

    move v8, p1

    invoke-virtual/range {v2 .. v8}, Lorg/zeam/Workspace;->addInCurrentScreen(Landroid/view/View;IIIIZ)V

    goto :goto_0
.end method

.method addLiveFolder(Landroid/content/Intent;)V
    .locals 4
    .parameter "intent"

    .prologue
    .line 1404
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0a005d

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 1405
    .local v0, folderName:Ljava/lang/String;
    const-string v2, "android.intent.extra.shortcut.NAME"

    invoke-virtual {p1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 1407
    .local v1, shortcutName:Ljava/lang/String;
    if-eqz v0, :cond_1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 1408
    iget-boolean v2, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    if-eqz v2, :cond_0

    const/4 v2, 0x0

    :goto_0
    invoke-virtual {p0, v2}, Lorg/zeam/Launcher;->addFolder(Z)V

    .line 1412
    :goto_1
    return-void

    .line 1408
    :cond_0
    const/4 v2, 0x1

    goto :goto_0

    .line 1410
    :cond_1
    const/4 v2, 0x4

    invoke-virtual {p0, p1, v2}, Lorg/zeam/Launcher;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_1
.end method

.method addSearch()V
    .locals 14

    .prologue
    const/4 v13, 0x1

    const/4 v7, 0x0

    .line 1360
    invoke-static {}, Lorg/zeam/Widget;->makeSearch()Lorg/zeam/Widget;

    move-result-object v1

    .line 1361
    .local v1, info:Lorg/zeam/Widget;
    iget-object v8, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    .line 1362
    .local v8, cellInfo:Lorg/zeam/CellLayout$CellInfo;
    iget-object v12, p0, Lorg/zeam/Launcher;->mCellCoordinates:[I

    .line 1363
    .local v12, xy:[I
    iget v10, v1, Lorg/zeam/Widget;->spanX:I

    .line 1364
    .local v10, spanX:I
    iget v11, v1, Lorg/zeam/Widget;->spanY:I

    .line 1365
    .local v11, spanY:I
    invoke-direct {p0, v8, v12, v10, v11}, Lorg/zeam/Launcher;->findSlot(Lorg/zeam/CellLayout$CellInfo;[III)Z

    move-result v0

    if-nez v0, :cond_0

    .line 1381
    :goto_0
    return-void

    .line 1369
    :cond_0
    iput v10, v1, Lorg/zeam/Widget;->spanX:I

    .line 1370
    iput v11, v1, Lorg/zeam/Widget;->spanY:I

    .line 1371
    sget-object v0, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v0, v1}, Lorg/zeam/LauncherModel;->addDesktopItem(Lorg/zeam/ItemInfo;)V

    .line 1373
    const-wide/16 v2, -0x64

    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v4

    aget v5, v12, v7

    aget v6, v12, v13

    move-object v0, p0

    invoke-static/range {v0 .. v7}, Lorg/zeam/LauncherModel;->addItemToDatabase(Landroid/content/Context;Lorg/zeam/ItemInfo;JIIIZ)V

    .line 1375
    iget-object v0, p0, Lorg/zeam/Launcher;->mInflater:Landroid/view/LayoutInflater;

    iget v2, v1, Lorg/zeam/Widget;->layoutResource:I

    const/4 v4, 0x0

    invoke-virtual {v0, v2, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 1376
    .local v3, view:Landroid/view/View;
    invoke-virtual {v3, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 1377
    const v0, 0x7f060028

    invoke-virtual {v3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Lorg/zeam/Search;

    .line 1378
    .local v9, search:Lorg/zeam/Search;
    invoke-virtual {v9, p0}, Lorg/zeam/Search;->setLauncher(Lorg/zeam/Launcher;)V

    .line 1380
    iget-object v2, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    aget v4, v12, v7

    aget v5, v12, v13

    move v6, v10

    move v7, v11

    invoke-virtual/range {v2 .. v7}, Lorg/zeam/Workspace;->addInCurrentScreen(Landroid/view/View;IIII)V

    goto :goto_0
.end method

.method bootstrapDock()V
    .locals 15

    .prologue
    .line 1698
    sget-object v12, Lorg/zeam/Launcher;->LOG_TAG:Ljava/lang/String;

    const-string v13, "-- bootstrapDock()"

    invoke-static {v12, v13}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1700
    iget-object v7, p0, Lorg/zeam/Launcher;->mDock:Lorg/zeam/Dock;

    .line 1701
    .local v7, dock:Lorg/zeam/Dock;
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    .line 1703
    .local v6, componentNames:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/content/ComponentName;>;"
    new-instance v12, Landroid/content/ComponentName;

    const-string v13, "com.android.contacts"

    const-string v14, "com.android.contacts.DialtactsActivity"

    invoke-direct {v12, v13, v14}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v6, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1704
    new-instance v12, Landroid/content/ComponentName;

    const-string v13, "com.android.mms"

    const-string v14, "com.android.mms.ui.ConversationList"

    invoke-direct {v12, v13, v14}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v6, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1705
    new-instance v12, Landroid/content/ComponentName;

    const-string v13, "com.google.android.gm"

    const-string v14, "com.google.android.gm.ConversationListActivityGmail"

    invoke-direct {v12, v13, v14}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v6, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1706
    new-instance v12, Landroid/content/ComponentName;

    const-string v13, "com.google.android.talk"

    const-string v14, "com.google.android.talk.SigningInActivity"

    invoke-direct {v12, v13, v14}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v6, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1707
    new-instance v12, Landroid/content/ComponentName;

    const-string v13, "com.android.browser"

    const-string v14, "com.android.browser.BrowserActivity"

    invoke-direct {v12, v13, v14}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v6, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1708
    new-instance v12, Landroid/content/ComponentName;

    const-string v13, "com.android.music"

    const-string v14, "com.android.music.MusicBrowserActivity"

    invoke-direct {v12, v13, v14}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v6, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1709
    new-instance v12, Landroid/content/ComponentName;

    const-string v13, "com.android.gallery"

    const-string v14, "com.android.camera.GalleryPicker"

    invoke-direct {v12, v13, v14}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v6, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1710
    new-instance v12, Landroid/content/ComponentName;

    const-string v13, "com.android.settings"

    const-string v14, "com.android.settings.Settings"

    invoke-direct {v12, v13, v14}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v6, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1712
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 1713
    .local v2, applications:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lorg/zeam/ApplicationItemInfo;>;"
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v11

    .line 1714
    .local v11, packageManager:Landroid/content/pm/PackageManager;
    const/4 v9, 0x0

    .local v9, f:I
    :goto_0
    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v12

    if-lt v9, v12, :cond_1

    .line 1734
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v12

    const/4 v13, 0x5

    if-le v12, v13, :cond_4

    .line 1735
    const/4 v10, 0x0

    .local v10, i:I
    :goto_1
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v12

    if-lt v10, v12, :cond_2

    .line 1752
    .end local p0
    :cond_0
    return-void

    .line 1716
    .end local v10           #i:I
    .restart local p0
    :cond_1
    invoke-virtual {v6, v9}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/content/ComponentName;

    .line 1717
    .local v5, componentName:Landroid/content/ComponentName;
    invoke-virtual {v5}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object v4

    .line 1719
    .local v4, className:Ljava/lang/String;
    const/4 v12, 0x0

    :try_start_0
    invoke-virtual {v11, v5, v12}, Landroid/content/pm/PackageManager;->getActivityInfo(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;

    move-result-object v0

    .line 1720
    .local v0, activityInfo:Landroid/content/pm/ActivityInfo;
    new-instance v1, Lorg/zeam/ApplicationItemInfo;

    invoke-direct {v1}, Lorg/zeam/ApplicationItemInfo;-><init>()V

    .line 1722
    .local v1, application:Lorg/zeam/ApplicationItemInfo;
    const-wide/16 v12, -0x1

    iput-wide v12, v1, Lorg/zeam/ApplicationItemInfo;->container:J

    .line 1723
    invoke-virtual {v0, v11}, Landroid/content/pm/ActivityInfo;->loadIcon(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;

    move-result-object v12

    invoke-static {v12, p0}, Lorg/zeam/Utilities;->createIconThumbnail(Landroid/graphics/drawable/Drawable;Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object v12

    iput-object v12, v1, Lorg/zeam/ApplicationItemInfo;->icon:Landroid/graphics/drawable/Drawable;

    .line 1724
    const/4 v12, 0x0

    iput-boolean v12, v1, Lorg/zeam/ApplicationItemInfo;->filtered:Z

    .line 1725
    invoke-virtual {v0, v11}, Landroid/content/pm/ActivityInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v12

    iput-object v12, v1, Lorg/zeam/ApplicationItemInfo;->title:Ljava/lang/CharSequence;

    .line 1726
    const/high16 v12, 0x1020

    invoke-virtual {v1, v5, v12}, Lorg/zeam/ApplicationItemInfo;->setActivity(Landroid/content/ComponentName;I)V

    .line 1729
    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1714
    .end local v0           #activityInfo:Landroid/content/pm/ActivityInfo;
    .end local v1           #application:Lorg/zeam/ApplicationItemInfo;
    :goto_2
    add-int/lit8 v9, v9, 0x1

    goto :goto_0

    .line 1730
    :catch_0
    move-exception v12

    move-object v8, v12

    .line 1731
    .local v8, e:Landroid/content/pm/PackageManager$NameNotFoundException;
    sget-object v12, Lorg/zeam/Launcher;->LOG_TAG:Ljava/lang/String;

    new-instance v13, Ljava/lang/StringBuilder;

    const-string v14, "\tcould not dock "

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v12, v13}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_2

    .line 1736
    .end local v4           #className:Ljava/lang/String;
    .end local v5           #componentName:Landroid/content/ComponentName;
    .end local v8           #e:Landroid/content/pm/PackageManager$NameNotFoundException;
    .restart local v10       #i:I
    :cond_2
    const/4 v12, 0x5

    if-ne v10, v12, :cond_3

    .line 1737
    new-instance v12, Lorg/zeam/ApplicationsGridItemInfo;

    invoke-direct {v12, p0}, Lorg/zeam/ApplicationsGridItemInfo;-><init>(Landroid/content/Context;)V

    invoke-virtual {v7, v12}, Lorg/zeam/Dock;->sendDrop(Lorg/zeam/ItemInfo;)V

    .line 1738
    move v3, v10

    .end local p0
    .local v3, c:I
    :goto_3
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v12

    if-ge v3, v12, :cond_0

    .line 1739
    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lorg/zeam/ItemInfo;

    invoke-virtual {v7, p0}, Lorg/zeam/Dock;->sendDrop(Lorg/zeam/ItemInfo;)V

    .line 1738
    add-int/lit8 v3, v3, 0x1

    goto :goto_3

    .line 1743
    .end local v3           #c:I
    .restart local p0
    :cond_3
    invoke-virtual {v2, v10}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lorg/zeam/ItemInfo;

    invoke-virtual {v7, v0}, Lorg/zeam/Dock;->sendDrop(Lorg/zeam/ItemInfo;)V

    .line 1735
    add-int/lit8 v10, v10, 0x1

    goto :goto_1

    .line 1747
    .end local v10           #i:I
    :cond_4
    new-instance v12, Lorg/zeam/ApplicationsGridItemInfo;

    invoke-direct {v12, p0}, Lorg/zeam/ApplicationsGridItemInfo;-><init>(Landroid/content/Context;)V

    invoke-virtual {v7, v12}, Lorg/zeam/Dock;->sendDrop(Lorg/zeam/ItemInfo;)V

    .line 1748
    const/4 v10, 0x0

    .end local p0
    .restart local v10       #i:I
    :goto_4
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v12

    if-ge v10, v12, :cond_0

    .line 1749
    invoke-virtual {v2, v10}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lorg/zeam/ItemInfo;

    invoke-virtual {v7, p0}, Lorg/zeam/Dock;->sendDrop(Lorg/zeam/ItemInfo;)V

    .line 1748
    add-int/lit8 v10, v10, 0x1

    goto :goto_4
.end method

.method closeAllApplications()V
    .locals 1

    .prologue
    .line 2056
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->closeApplicationsGrid(Z)V

    .line 2057
    return-void
.end method

.method closeFolder(Lorg/zeam/Folder;)V
    .locals 3
    .parameter "folder"

    .prologue
    .line 1649
    invoke-virtual {p1}, Lorg/zeam/Folder;->getInfo()Lorg/zeam/FolderInfo;

    move-result-object v1

    const/4 v2, 0x0

    iput-boolean v2, v1, Lorg/zeam/FolderInfo;->opened:Z

    .line 1650
    invoke-virtual {p1}, Lorg/zeam/Folder;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 1651
    .local v0, parent:Landroid/view/ViewGroup;
    if-eqz v0, :cond_0

    .line 1652
    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 1654
    :cond_0
    invoke-virtual {p1}, Lorg/zeam/Folder;->onClose()V

    .line 1655
    return-void
.end method

.method closeSystemDialogs()V
    .locals 1

    .prologue
    .line 1007
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->closeAllPanels()V

    .line 1009
    const/4 v0, 0x2

    :try_start_0
    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->dismissDialog(I)V

    .line 1010
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->unlock()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 1014
    :goto_0
    const/4 v0, 0x3

    :try_start_1
    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->dismissDialog(I)V

    .line 1015
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->unlock()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 1018
    :goto_1
    return-void

    .line 1016
    :catch_0
    move-exception v0

    goto :goto_1

    .line 1011
    :catch_1
    move-exception v0

    goto :goto_0
.end method

.method completeAddApplication(Landroid/content/Context;Landroid/content/Intent;Lorg/zeam/CellLayout$CellInfo;Z)V
    .locals 3
    .parameter "context"
    .parameter "data"
    .parameter "cellInfo"
    .parameter "insertAtFirst"

    .prologue
    const/4 v2, -0x1

    .line 797
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v1}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v1

    iput v1, p3, Lorg/zeam/CellLayout$CellInfo;->screen:I

    .line 798
    iget v1, p3, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    if-eq v1, v2, :cond_0

    iget v1, p3, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    if-ne v1, v2, :cond_2

    .line 799
    :cond_0
    invoke-direct {p0, p3}, Lorg/zeam/Launcher;->findSingleSlot(Lorg/zeam/CellLayout$CellInfo;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 808
    :cond_1
    :goto_0
    return-void

    .line 804
    :cond_2
    invoke-static {p1, p2}, Lorg/zeam/Launcher;->infoFromApplicationIntent(Landroid/content/Context;Landroid/content/Intent;)Lorg/zeam/ApplicationItemInfo;

    move-result-object v0

    .line 805
    .local v0, info:Lorg/zeam/ApplicationItemInfo;
    if-eqz v0, :cond_1

    .line 806
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v1, v0, p3, p4}, Lorg/zeam/Workspace;->addApplicationShortcut(Lorg/zeam/ApplicationItemInfo;Lorg/zeam/CellLayout$CellInfo;Z)V

    goto :goto_0
.end method

.method createApplicationsGridItemView(Lorg/zeam/ApplicationsGridItemInfo;)Landroid/view/View;
    .locals 6
    .parameter "applicationsGridItemInfo"

    .prologue
    const/4 v5, 0x0

    .line 865
    iget-object v2, p0, Lorg/zeam/Launcher;->mInflater:Landroid/view/LayoutInflater;

    const/high16 v3, 0x7f03

    .line 866
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget-object v4, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v4}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v4

    invoke-virtual {v1, v4}, Lorg/zeam/Workspace;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    const/4 v4, 0x0

    .line 865
    invoke-virtual {v2, v3, v1, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 869
    .local v0, textView:Landroid/widget/TextView;
    iget-object v1, p1, Lorg/zeam/ApplicationsGridItemInfo;->icon:Landroid/graphics/drawable/Drawable;

    invoke-static {v1, p0}, Lorg/zeam/Utilities;->createIconThumbnail(Landroid/graphics/drawable/Drawable;Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    .line 868
    invoke-virtual {v0, v5, v1, v5, v5}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    .line 870
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->isShowShortcutTitlesEnabled(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 871
    iget-object v1, p1, Lorg/zeam/ApplicationsGridItemInfo;->title:Ljava/lang/CharSequence;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 873
    :cond_0
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 874
    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 875
    return-object v0
.end method

.method createShortcut(ILandroid/view/ViewGroup;Lorg/zeam/ApplicationItemInfo;)Landroid/view/View;
    .locals 4
    .parameter "layoutResId"
    .parameter "parent"
    .parameter "info"

    .prologue
    const/4 v3, 0x0

    .line 781
    iget-object v1, p0, Lorg/zeam/Launcher;->mInflater:Landroid/view/LayoutInflater;

    const/4 v2, 0x0

    invoke-virtual {v1, p1, p2, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 782
    .local v0, favorite:Landroid/widget/TextView;
    iget-boolean v1, p3, Lorg/zeam/ApplicationItemInfo;->filtered:Z

    if-nez v1, :cond_0

    .line 783
    iget-object v1, p3, Lorg/zeam/ApplicationItemInfo;->icon:Landroid/graphics/drawable/Drawable;

    invoke-static {v1, p0}, Lorg/zeam/Utilities;->createIconThumbnail(Landroid/graphics/drawable/Drawable;Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    iput-object v1, p3, Lorg/zeam/ApplicationItemInfo;->icon:Landroid/graphics/drawable/Drawable;

    .line 784
    const/4 v1, 0x1

    iput-boolean v1, p3, Lorg/zeam/ApplicationItemInfo;->filtered:Z

    .line 786
    :cond_0
    iget-object v1, p3, Lorg/zeam/ApplicationItemInfo;->icon:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v3, v1, v3, v3}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    .line 787
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->isShowShortcutTitlesEnabled(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 788
    iget-object v1, p3, Lorg/zeam/ApplicationItemInfo;->title:Ljava/lang/CharSequence;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 790
    :cond_1
    invoke-virtual {v0, p3}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 791
    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 792
    return-object v0
.end method

.method createShortcut(Lorg/zeam/ApplicationItemInfo;)Landroid/view/View;
    .locals 3
    .parameter "info"

    .prologue
    .line 776
    const/high16 v1, 0x7f03

    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget-object v2, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v2}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v2

    invoke-virtual {v0, v2}, Lorg/zeam/Workspace;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {p0, v1, v0, p1}, Lorg/zeam/Launcher;->createShortcut(ILandroid/view/ViewGroup;Lorg/zeam/ApplicationItemInfo;)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method createSmallApplicationsGridItem(ILandroid/view/ViewGroup;Lorg/zeam/ApplicationsGridItemInfo;)Landroid/view/View;
    .locals 3
    .parameter "layoutResId"
    .parameter "parent"
    .parameter "applicationsGridItemInfo"

    .prologue
    .line 2563
    iget-object v1, p0, Lorg/zeam/Launcher;->mInflater:Landroid/view/LayoutInflater;

    const/4 v2, 0x0

    invoke-virtual {v1, p1, p2, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 2564
    .local v0, favorite:Landroid/widget/ImageView;
    iget-object v1, p3, Lorg/zeam/ApplicationsGridItemInfo;->icon:Landroid/graphics/drawable/Drawable;

    invoke-static {v1, p0}, Lorg/zeam/Utilities;->drawReflection(Landroid/graphics/drawable/Drawable;Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 2565
    invoke-virtual {v0, p3}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 2566
    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 2567
    return-object v0
.end method

.method createSmallFolder(ILandroid/view/ViewGroup;Lorg/zeam/UserFolderInfo;)Landroid/view/View;
    .locals 4
    .parameter "layoutResId"
    .parameter "parent"
    .parameter "info"

    .prologue
    .line 2585
    iget-object v2, p0, Lorg/zeam/Launcher;->mInflater:Landroid/view/LayoutInflater;

    const/4 v3, 0x0

    invoke-virtual {v2, p1, p2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 2586
    .local v1, favorite:Landroid/widget/ImageView;
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f020011

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 2587
    .local v0, drawable:Landroid/graphics/drawable/Drawable;
    invoke-static {v0, p0}, Lorg/zeam/Utilities;->drawReflection(Landroid/graphics/drawable/Drawable;Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 2588
    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 2589
    invoke-virtual {v1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 2590
    invoke-virtual {v1, p3}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 2591
    return-object v1
.end method

.method createSmallLiveFolder(ILandroid/view/ViewGroup;Lorg/zeam/LiveFolderInfo;)Landroid/view/View;
    .locals 5
    .parameter "layoutResId"
    .parameter "parent"
    .parameter "info"

    .prologue
    .line 2596
    iget-object v3, p0, Lorg/zeam/Launcher;->mInflater:Landroid/view/LayoutInflater;

    const/4 v4, 0x0

    invoke-virtual {v3, p1, p2, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 2597
    .local v1, favorite:Landroid/widget/ImageView;
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    .line 2598
    .local v2, resources:Landroid/content/res/Resources;
    iget-object v0, p3, Lorg/zeam/LiveFolderInfo;->icon:Landroid/graphics/drawable/Drawable;

    .line 2599
    .local v0, drawable:Landroid/graphics/drawable/Drawable;
    if-nez v0, :cond_0

    .line 2600
    const v3, 0x7f020011

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 2602
    :cond_0
    const/4 v3, 0x1

    iput-boolean v3, p3, Lorg/zeam/LiveFolderInfo;->filtered:Z

    .line 2604
    invoke-static {v0, p0}, Lorg/zeam/Utilities;->drawReflection(Landroid/graphics/drawable/Drawable;Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 2605
    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 2606
    invoke-virtual {v1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 2607
    invoke-virtual {v1, p3}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 2608
    return-object v1
.end method

.method createSmallShortcut(ILandroid/view/ViewGroup;Lorg/zeam/ApplicationItemInfo;)Landroid/view/View;
    .locals 3
    .parameter "layoutResId"
    .parameter "parent"
    .parameter "info"

    .prologue
    .line 2572
    iget-object v1, p0, Lorg/zeam/Launcher;->mInflater:Landroid/view/LayoutInflater;

    const/4 v2, 0x0

    invoke-virtual {v1, p1, p2, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 2573
    .local v0, favorite:Landroid/widget/ImageView;
    iget-boolean v1, p3, Lorg/zeam/ApplicationItemInfo;->filtered:Z

    if-nez v1, :cond_0

    .line 2574
    iget-object v1, p3, Lorg/zeam/ApplicationItemInfo;->icon:Landroid/graphics/drawable/Drawable;

    invoke-static {v1, p0}, Lorg/zeam/Utilities;->createIconThumbnail(Landroid/graphics/drawable/Drawable;Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    iput-object v1, p3, Lorg/zeam/ApplicationItemInfo;->icon:Landroid/graphics/drawable/Drawable;

    .line 2575
    const/4 v1, 0x1

    iput-boolean v1, p3, Lorg/zeam/ApplicationItemInfo;->filtered:Z

    .line 2577
    :cond_0
    iget-object v1, p3, Lorg/zeam/ApplicationItemInfo;->icon:Landroid/graphics/drawable/Drawable;

    invoke-static {v1, p0}, Lorg/zeam/Utilities;->drawReflection(Landroid/graphics/drawable/Drawable;Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 2578
    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 2579
    invoke-virtual {v0, p3}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 2580
    return-object v0
.end method

.method public dismissPreviews()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 2638
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mPreviewsShowing:Z

    if-eqz v0, :cond_0

    .line 2640
    invoke-direct {p0, v1}, Lorg/zeam/Launcher;->hideDesktop(Z)V

    .line 2641
    iput-boolean v1, p0, Lorg/zeam/Launcher;->mPreviewsShowing:Z

    .line 2642
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0, v1}, Lorg/zeam/Workspace;->togglePreviews(Z)V

    .line 2644
    :cond_0
    return-void
.end method

.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 2
    .parameter "event"

    .prologue
    const/4 v1, 0x1

    .line 1592
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_1

    .line 1593
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 1618
    :cond_0
    :goto_0
    invoke-super {p0, p1}, Landroid/app/Activity;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    :goto_1
    return v0

    :pswitch_0
    move v0, v1

    .line 1595
    goto :goto_1

    :pswitch_1
    move v0, v1

    .line 1597
    goto :goto_1

    .line 1599
    :cond_1
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-ne v0, v1, :cond_0

    .line 1600
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    packed-switch v0, :pswitch_data_1

    goto :goto_0

    :pswitch_2
    move v0, v1

    .line 1615
    goto :goto_1

    .line 1602
    :pswitch_3
    invoke-virtual {p1}, Landroid/view/KeyEvent;->isCanceled()Z

    move-result v0

    if-nez v0, :cond_2

    .line 1603
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0, p1}, Lorg/zeam/Workspace;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    .line 1604
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mApplicationsGridOpen:Z

    if-eqz v0, :cond_3

    .line 1605
    invoke-direct {p0}, Lorg/zeam/Launcher;->closeApplications()V

    .line 1609
    :goto_2
    invoke-virtual {p0}, Lorg/zeam/Launcher;->isPreviewsShowing()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 1610
    invoke-virtual {p0}, Lorg/zeam/Launcher;->dismissPreviews()V

    :cond_2
    move v0, v1

    .line 1613
    goto :goto_1

    .line 1607
    :cond_3
    invoke-direct {p0}, Lorg/zeam/Launcher;->closeFolder()V

    goto :goto_2

    .line 1593
    :pswitch_data_0
    .packed-switch 0x3
        :pswitch_1
        :pswitch_0
    .end packed-switch

    .line 1600
    :pswitch_data_1
    .packed-switch 0x3
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public fireSwipeDownAction()V
    .locals 1

    .prologue
    .line 2813
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getActionBindingForSwipeDown(Landroid/content/Context;)I

    move-result v0

    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->performAction(I)V

    .line 2814
    return-void
.end method

.method public fireSwipeUpAction()V
    .locals 1

    .prologue
    .line 2817
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getActionBindingForSwipeUp(Landroid/content/Context;)I

    move-result v0

    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->performAction(I)V

    .line 2818
    return-void
.end method

.method public getAppWidgetHost()Lorg/zeam/LauncherAppWidgetHost;
    .locals 1

    .prologue
    .line 948
    iget-object v0, p0, Lorg/zeam/Launcher;->mAppWidgetHost:Lorg/zeam/LauncherAppWidgetHost;

    return-object v0
.end method

.method getDisplayMetrics()Landroid/util/DisplayMetrics;
    .locals 1

    .prologue
    .line 293
    iget-object v0, p0, Lorg/zeam/Launcher;->mDisplayMetrics:Landroid/util/DisplayMetrics;

    return-object v0
.end method

.method public getScreenIndicator()Lorg/zeam/ScreenIndicator;
    .locals 1

    .prologue
    .line 2855
    iget-object v0, p0, Lorg/zeam/Launcher;->mScreenIndicator:Lorg/zeam/ScreenIndicator;

    return-object v0
.end method

.method getWorkspace()Lorg/zeam/Workspace;
    .locals 1

    .prologue
    .line 2060
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    return-object v0
.end method

.method isApplicationsGridOpen()Z
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 2713
    iget-object v0, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    if-eqz v0, :cond_1

    .line 2714
    iget-object v0, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    invoke-interface {v0}, Lorg/zeam/ApplicationsView;->getImplementingView()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    .line 2716
    :goto_0
    return v0

    :cond_0
    move v0, v1

    .line 2714
    goto :goto_0

    :cond_1
    move v0, v1

    .line 2716
    goto :goto_0
.end method

.method protected isFullScreenPreviewing()Z
    .locals 1

    .prologue
    .line 2624
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mPreviewsShowing:Z

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lorg/zeam/Launcher;->mFullScreenPreviews:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected isPreviewsShowing()Z
    .locals 1

    .prologue
    .line 2620
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mPreviewsShowing:Z

    return v0
.end method

.method isWorkspaceLocked()Z
    .locals 1

    .prologue
    .line 2021
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    return v0
.end method

.method public nextScreen(Landroid/view/View;)V
    .locals 1
    .parameter "v"

    .prologue
    .line 2616
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->scrollRight()V

    .line 2617
    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 5
    .parameter "requestCode"
    .parameter "resultCode"
    .parameter "data"

    .prologue
    const/4 v2, -0x1

    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 413
    iput-boolean v3, p0, Lorg/zeam/Launcher;->mWaitingForResult:Z

    .line 415
    if-ne p2, v2, :cond_5

    iget-object v1, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    if-eqz v1, :cond_5

    .line 416
    packed-switch p1, :pswitch_data_0

    .line 449
    :cond_0
    :goto_0
    :pswitch_0
    return-void

    .line 418
    :pswitch_1
    iget-object v1, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    iget-boolean v2, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    if-eqz v2, :cond_1

    move v2, v3

    :goto_1
    invoke-virtual {p0, p0, p3, v1, v2}, Lorg/zeam/Launcher;->completeAddApplication(Landroid/content/Context;Landroid/content/Intent;Lorg/zeam/CellLayout$CellInfo;Z)V

    goto :goto_0

    :cond_1
    move v2, v4

    goto :goto_1

    .line 421
    :pswitch_2
    const/4 v1, 0x6

    invoke-virtual {p0, p3, v1, v4}, Lorg/zeam/Launcher;->processShortcut(Landroid/content/Intent;II)V

    goto :goto_0

    .line 424
    :pswitch_3
    iget-object v1, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    iget-boolean v2, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    if-eqz v2, :cond_2

    move v2, v3

    :goto_2
    invoke-direct {p0, p3, v1, v2}, Lorg/zeam/Launcher;->completeAddShortcut(Landroid/content/Intent;Lorg/zeam/CellLayout$CellInfo;Z)V

    goto :goto_0

    :cond_2
    move v2, v4

    goto :goto_2

    .line 427
    :pswitch_4
    invoke-virtual {p0, p3}, Lorg/zeam/Launcher;->addLiveFolder(Landroid/content/Intent;)V

    goto :goto_0

    .line 430
    :pswitch_5
    iget-object v1, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    iget-boolean v2, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    if-eqz v2, :cond_3

    move v2, v3

    :goto_3
    invoke-direct {p0, p3, v1, v2}, Lorg/zeam/Launcher;->completeAddLiveFolder(Landroid/content/Intent;Lorg/zeam/CellLayout$CellInfo;Z)V

    goto :goto_0

    :cond_3
    move v2, v4

    goto :goto_3

    .line 433
    :pswitch_6
    invoke-virtual {p0, p3}, Lorg/zeam/Launcher;->addAppWidget(Landroid/content/Intent;)V

    goto :goto_0

    .line 436
    :pswitch_7
    iget-object v1, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    iget-boolean v2, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    if-eqz v2, :cond_4

    move v2, v3

    :goto_4
    invoke-direct {p0, p3, v1, v2}, Lorg/zeam/Launcher;->completeAddAppWidget(Landroid/content/Intent;Lorg/zeam/CellLayout$CellInfo;Z)V

    goto :goto_0

    :cond_4
    move v2, v4

    goto :goto_4

    .line 439
    :cond_5
    const/16 v1, 0x9

    if-eq p1, v1, :cond_6

    .line 440
    const/4 v1, 0x5

    if-ne p1, v1, :cond_0

    .line 441
    :cond_6
    if-nez p2, :cond_0

    .line 442
    if-eqz p3, :cond_0

    .line 444
    const-string v1, "appWidgetId"

    invoke-virtual {p3, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    .line 445
    .local v0, appWidgetId:I
    if-eq v0, v2, :cond_0

    .line 446
    iget-object v1, p0, Lorg/zeam/Launcher;->mAppWidgetHost:Lorg/zeam/LauncherAppWidgetHost;

    invoke-virtual {v1, v0}, Lorg/zeam/LauncherAppWidgetHost;->deleteAppWidgetId(I)V

    goto :goto_0

    .line 416
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_3
        :pswitch_0
        :pswitch_0
        :pswitch_5
        :pswitch_7
        :pswitch_1
        :pswitch_2
        :pswitch_4
        :pswitch_6
    .end packed-switch
.end method

.method public onClick(Landroid/view/View;)V
    .locals 11
    .parameter "view"

    .prologue
    const/4 v6, 0x2

    .line 1932
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v4

    .line 1933
    .local v4, tag:Ljava/lang/Object;
    instance-of v5, v4, Lorg/zeam/ApplicationsGridItemInfo;

    if-eqz v5, :cond_1

    .line 1934
    invoke-direct {p0, v6}, Lorg/zeam/Launcher;->performAction(I)V

    .line 1951
    .end local v4           #tag:Ljava/lang/Object;
    :cond_0
    :goto_0
    return-void

    .line 1936
    .restart local v4       #tag:Ljava/lang/Object;
    :cond_1
    instance-of v5, v4, Lorg/zeam/ApplicationItemInfo;

    if-eqz v5, :cond_2

    .line 1938
    move-object v0, v4

    check-cast v0, Lorg/zeam/ApplicationItemInfo;

    move-object v1, v0

    .line 1939
    .local v1, info:Lorg/zeam/ApplicationItemInfo;
    iget-object v2, v1, Lorg/zeam/ApplicationItemInfo;->intent:Landroid/content/Intent;

    .line 1940
    .local v2, intent:Landroid/content/Intent;
    new-array v3, v6, [I

    .line 1941
    .local v3, pos:[I
    invoke-virtual {p1, v3}, Landroid/view/View;->getLocationOnScreen([I)V

    .line 1943
    :try_start_0
    new-instance v5, Landroid/graphics/Rect;

    const/4 v6, 0x0

    aget v6, v3, v6

    const/4 v7, 0x1

    aget v7, v3, v7

    const/4 v8, 0x0

    aget v8, v3, v8

    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v9

    add-int/2addr v8, v9

    const/4 v9, 0x1

    aget v9, v3, v9

    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result v10

    add-int/2addr v9, v10

    invoke-direct {v5, v6, v7, v8, v9}, Landroid/graphics/Rect;-><init>(IIII)V

    invoke-virtual {v2, v5}, Landroid/content/Intent;->setSourceBounds(Landroid/graphics/Rect;)V
    :try_end_0
    .catch Ljava/lang/NoSuchMethodError; {:try_start_0 .. :try_end_0} :catch_0

    .line 1946
    :goto_1
    invoke-virtual {p0, v2}, Lorg/zeam/Launcher;->startActivitySafely(Landroid/content/Intent;)V

    goto :goto_0

    .line 1948
    .end local v1           #info:Lorg/zeam/ApplicationItemInfo;
    .end local v2           #intent:Landroid/content/Intent;
    .end local v3           #pos:[I
    :cond_2
    instance-of v5, v4, Lorg/zeam/FolderInfo;

    if-eqz v5, :cond_0

    .line 1949
    check-cast v4, Lorg/zeam/FolderInfo;

    .end local v4           #tag:Ljava/lang/Object;
    invoke-direct {p0, v4}, Lorg/zeam/Launcher;->handleFolderClick(Lorg/zeam/FolderInfo;)V

    goto :goto_0

    .line 1944
    .restart local v1       #info:Lorg/zeam/ApplicationItemInfo;
    .restart local v2       #intent:Landroid/content/Intent;
    .restart local v3       #pos:[I
    .restart local v4       #tag:Ljava/lang/Object;
    :catch_0
    move-exception v5

    goto :goto_1
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 8
    .parameter "savedInstanceState"

    .prologue
    const/4 v7, 0x0

    .line 202
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 204
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v5

    iput-object v5, p0, Lorg/zeam/Launcher;->mInflater:Landroid/view/LayoutInflater;

    .line 205
    invoke-static {p0}, Landroid/appwidget/AppWidgetManager;->getInstance(Landroid/content/Context;)Landroid/appwidget/AppWidgetManager;

    move-result-object v5

    iput-object v5, p0, Lorg/zeam/Launcher;->mAppWidgetManager:Landroid/appwidget/AppWidgetManager;

    .line 206
    new-instance v5, Lorg/zeam/LauncherAppWidgetHost;

    const/16 v6, 0x400

    invoke-direct {v5, p0, v6}, Lorg/zeam/LauncherAppWidgetHost;-><init>(Landroid/content/Context;I)V

    iput-object v5, p0, Lorg/zeam/Launcher;->mAppWidgetHost:Lorg/zeam/LauncherAppWidgetHost;

    .line 207
    iget-object v5, p0, Lorg/zeam/Launcher;->mAppWidgetHost:Lorg/zeam/LauncherAppWidgetHost;

    invoke-virtual {v5}, Lorg/zeam/LauncherAppWidgetHost;->startListening()V

    .line 208
    invoke-direct {p0}, Lorg/zeam/Launcher;->mustBootstrapDock()Z

    move-result v5

    iput-boolean v5, p0, Lorg/zeam/Launcher;->mBootstrap:Z

    .line 210
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v4

    .line 211
    .local v4, windowManager:Landroid/view/WindowManager;
    invoke-interface {v4}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    .line 212
    .local v0, defaultDisplay:Landroid/view/Display;
    new-instance v2, Landroid/util/DisplayMetrics;

    invoke-direct {v2}, Landroid/util/DisplayMetrics;-><init>()V

    .line 213
    .local v2, displayMetrics:Landroid/util/DisplayMetrics;
    invoke-virtual {v0, v2}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 215
    iget v3, v2, Landroid/util/DisplayMetrics;->widthPixels:I

    .line 216
    .local v3, displayWidth:I
    iget v1, v2, Landroid/util/DisplayMetrics;->heightPixels:I

    .line 217
    .local v1, displayHeight:I
    if-ge v3, v1, :cond_1

    move v5, v7

    :goto_0
    iput v5, p0, Lorg/zeam/Launcher;->mRotation:I

    .line 218
    iput-object v2, p0, Lorg/zeam/Launcher;->mDisplayMetrics:Landroid/util/DisplayMetrics;

    .line 223
    invoke-direct {p0}, Lorg/zeam/Launcher;->checkForLocaleChange()V

    .line 224
    invoke-direct {p0}, Lorg/zeam/Launcher;->setWallpaperDimension()V

    .line 225
    const v5, 0x7f03000d

    invoke-virtual {p0, v5}, Lorg/zeam/Launcher;->setContentView(I)V

    .line 226
    invoke-direct {p0}, Lorg/zeam/Launcher;->setupViews()V

    .line 228
    invoke-direct {p0}, Lorg/zeam/Launcher;->registerIntentReceivers()V

    .line 229
    invoke-direct {p0}, Lorg/zeam/Launcher;->registerContentObservers()V

    .line 230
    iput-object p1, p0, Lorg/zeam/Launcher;->mSavedState:Landroid/os/Bundle;

    .line 231
    iget-object v5, p0, Lorg/zeam/Launcher;->mSavedState:Landroid/os/Bundle;

    invoke-direct {p0, v5}, Lorg/zeam/Launcher;->restoreState(Landroid/os/Bundle;)V

    .line 236
    iget-boolean v5, p0, Lorg/zeam/Launcher;->mRestoring:Z

    if-nez v5, :cond_0

    .line 237
    invoke-direct {p0}, Lorg/zeam/Launcher;->startLoaders()V

    .line 240
    :cond_0
    new-instance v5, Landroid/text/SpannableStringBuilder;

    invoke-direct {v5}, Landroid/text/SpannableStringBuilder;-><init>()V

    iput-object v5, p0, Lorg/zeam/Launcher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    .line 241
    iget-object v5, p0, Lorg/zeam/Launcher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    invoke-static {v5, v7}, Landroid/text/Selection;->setSelection(Landroid/text/Spannable;I)V

    .line 242
    return-void

    .line 217
    :cond_1
    const/4 v5, 0x1

    goto :goto_0
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 2
    .parameter "id"

    .prologue
    const/4 v1, 0x0

    .line 2066
    packed-switch p1, :pswitch_data_0

    .line 2074
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreateDialog(I)Landroid/app/Dialog;

    move-result-object v0

    :goto_0
    return-object v0

    .line 2068
    :pswitch_0
    new-instance v0, Lorg/zeam/Launcher$LauncherDialog;

    invoke-direct {v0, p0, v1}, Lorg/zeam/Launcher$LauncherDialog;-><init>(Lorg/zeam/Launcher;Lorg/zeam/Launcher$LauncherDialog;)V

    invoke-virtual {v0}, Lorg/zeam/Launcher$LauncherDialog;->createDialog()Landroid/app/Dialog;

    move-result-object v0

    goto :goto_0

    .line 2070
    :pswitch_1
    new-instance v0, Lorg/zeam/Launcher$AddDialog;

    invoke-direct {v0, p0, v1}, Lorg/zeam/Launcher$AddDialog;-><init>(Lorg/zeam/Launcher;Lorg/zeam/Launcher$AddDialog;)V

    invoke-virtual {v0}, Lorg/zeam/Launcher$AddDialog;->createDialog()Landroid/app/Dialog;

    move-result-object v0

    goto :goto_0

    .line 2072
    :pswitch_2
    new-instance v0, Lorg/zeam/Launcher$RenameFolderDialog;

    invoke-direct {v0, p0, v1}, Lorg/zeam/Launcher$RenameFolderDialog;-><init>(Lorg/zeam/Launcher;Lorg/zeam/Launcher$RenameFolderDialog;)V

    invoke-virtual {v0}, Lorg/zeam/Launcher$RenameFolderDialog;->createDialog()Landroid/app/Dialog;

    move-result-object v0

    goto :goto_0

    .line 2066
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 7
    .parameter "menu"

    .prologue
    const/16 v6, 0x4d

    const/4 v5, 0x1

    const/4 v4, 0x3

    const/4 v2, 0x2

    const/4 v3, 0x0

    .line 1158
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreateOptionsMenu(Landroid/view/Menu;)Z

    .line 1160
    const v0, 0x7f0a0074

    invoke-interface {p1, v5, v2, v3, v0}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v0

    .line 1161
    const v1, 0x1080033

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 1162
    const/16 v1, 0x41

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setAlphabeticShortcut(C)Landroid/view/MenuItem;

    .line 1163
    const v0, 0x7f0a0075

    invoke-interface {p1, v2, v4, v3, v0}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v0

    .line 1164
    const v1, 0x108003f

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 1165
    const/16 v1, 0x57

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setAlphabeticShortcut(C)Landroid/view/MenuItem;

    .line 1166
    const/4 v0, 0x4

    const v1, 0x7f0a0073

    invoke-interface {p1, v2, v0, v3, v1}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v0

    .line 1167
    const v1, 0x1080060

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 1168
    const/16 v1, 0x73

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setAlphabeticShortcut(C)Landroid/view/MenuItem;

    .line 1169
    const/4 v0, 0x5

    const v1, 0x7f0a0076

    invoke-interface {p1, v2, v0, v3, v1}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v0

    .line 1170
    const v1, 0x1080057

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 1171
    invoke-interface {v0, v6}, Landroid/view/MenuItem;->setAlphabeticShortcut(C)Landroid/view/MenuItem;

    .line 1172
    const/4 v0, 0x6

    const v1, 0x7f0a0077

    invoke-interface {p1, v2, v0, v3, v1}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v0

    .line 1173
    const v1, 0x1080042

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 1174
    const/16 v1, 0x50

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setAlphabeticShortcut(C)Landroid/view/MenuItem;

    .line 1175
    const/4 v0, 0x7

    const v1, 0x7f0a0078

    invoke-interface {p1, v2, v0, v3, v1}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v0

    .line 1176
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.settings.SETTINGS"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIntent(Landroid/content/Intent;)Landroid/view/MenuItem;

    move-result-object v0

    .line 1177
    const v1, 0x1080049

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 1178
    const/16 v1, 0x53

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setAlphabeticShortcut(C)Landroid/view/MenuItem;

    .line 1179
    const/16 v0, 0x8

    const v1, 0x7f0a0079

    invoke-interface {p1, v4, v0, v3, v1}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v0

    .line 1180
    const v1, 0x1080042

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 1181
    invoke-interface {v0, v6}, Landroid/view/MenuItem;->setAlphabeticShortcut(C)Landroid/view/MenuItem;

    .line 1182
    const/16 v0, 0x9

    const v1, 0x7f0a007a

    invoke-interface {p1, v4, v0, v3, v1}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v0

    .line 1183
    const v1, 0x108003c

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 1184
    const/16 v1, 0x55

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setAlphabeticShortcut(C)Landroid/view/MenuItem;

    .line 1186
    return v5
.end method

.method onDesktopItemsLoaded(Ljava/util/ArrayList;Ljava/util/ArrayList;)V
    .locals 1
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lorg/zeam/ItemInfo;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lorg/zeam/LauncherAppWidgetInfo;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 1669
    .local p1, shortcuts:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lorg/zeam/ItemInfo;>;"
    .local p2, appWidgets:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lorg/zeam/LauncherAppWidgetInfo;>;"
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mDestroyed:Z

    if-eqz v0, :cond_0

    .line 1676
    :goto_0
    return-void

    .line 1675
    :cond_0
    invoke-direct {p0, p1, p2}, Lorg/zeam/Launcher;->bindDesktopItems(Ljava/util/ArrayList;Ljava/util/ArrayList;)V

    goto :goto_0
.end method

.method public onDestroy()V
    .locals 3

    .prologue
    .line 1127
    const/4 v1, 0x1

    iput-boolean v1, p0, Lorg/zeam/Launcher;->mDestroyed:Z

    .line 1128
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 1130
    :try_start_0
    iget-object v1, p0, Lorg/zeam/Launcher;->mAppWidgetHost:Lorg/zeam/LauncherAppWidgetHost;

    invoke-virtual {v1}, Lorg/zeam/LauncherAppWidgetHost;->stopListening()V
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1134
    :goto_0
    invoke-static {}, Landroid/text/method/TextKeyListener;->getInstance()Landroid/text/method/TextKeyListener;

    move-result-object v1

    invoke-virtual {v1}, Landroid/text/method/TextKeyListener;->release()V

    .line 1135
    iget-object v1, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    invoke-interface {v1}, Lorg/zeam/ApplicationsView;->onDestroy()V

    .line 1137
    sget-object v1, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v1}, Lorg/zeam/LauncherModel;->unbind()V

    .line 1138
    sget-object v1, Lorg/zeam/Launcher;->sLauncherModel:Lorg/zeam/LauncherModel;

    invoke-virtual {v1}, Lorg/zeam/LauncherModel;->abortLoaders()V

    .line 1140
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    iget-object v2, p0, Lorg/zeam/Launcher;->mObserver:Landroid/database/ContentObserver;

    invoke-virtual {v1, v2}, Landroid/content/ContentResolver;->unregisterContentObserver(Landroid/database/ContentObserver;)V

    .line 1141
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    iget-object v2, p0, Lorg/zeam/Launcher;->mWidgetObserver:Landroid/database/ContentObserver;

    invoke-virtual {v1, v2}, Landroid/content/ContentResolver;->unregisterContentObserver(Landroid/database/ContentObserver;)V

    .line 1142
    iget-object v1, p0, Lorg/zeam/Launcher;->mApplicationsReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1}, Lorg/zeam/Launcher;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 1143
    iget-object v1, p0, Lorg/zeam/Launcher;->mCloseSystemDialogsReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1}, Lorg/zeam/Launcher;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 1144
    return-void

    .line 1131
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 1132
    .local v0, ex:Ljava/lang/NullPointerException;
    sget-object v1, Lorg/zeam/Launcher;->LOG_TAG:Ljava/lang/String;

    const-string v2, "problem while stopping AppWidgetHost during Launcher destruction"

    invoke-static {v1, v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0
.end method

.method onDoubleTap(Landroid/view/MotionEvent;)V
    .locals 1
    .parameter "motionEvent"

    .prologue
    .line 2809
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getActionBindingForDoubleTap(Landroid/content/Context;)I

    move-result v0

    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->performAction(I)V

    .line 2810
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 5
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 528
    invoke-super {p0, p1, p2}, Landroid/app/Activity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v1

    .line 529
    .local v1, handled:Z
    if-nez v1, :cond_0

    invoke-direct {p0}, Lorg/zeam/Launcher;->acceptFilter()Z

    move-result v2

    if-eqz v2, :cond_0

    const/16 v2, 0x42

    if-eq p1, v2, :cond_0

    .line 530
    invoke-static {}, Landroid/text/method/TextKeyListener;->getInstance()Landroid/text/method/TextKeyListener;

    move-result-object v2

    iget-object v3, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget-object v4, p0, Lorg/zeam/Launcher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    invoke-virtual {v2, v3, v4, p1, p2}, Landroid/text/method/TextKeyListener;->onKeyDown(Landroid/view/View;Landroid/text/Editable;ILandroid/view/KeyEvent;)Z

    move-result v0

    .line 531
    .local v0, gotKey:Z
    if-eqz v0, :cond_0

    iget-object v2, p0, Lorg/zeam/Launcher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lorg/zeam/Launcher;->mDefaultKeySsb:Landroid/text/SpannableStringBuilder;

    invoke-virtual {v2}, Landroid/text/SpannableStringBuilder;->length()I

    move-result v2

    if-lez v2, :cond_0

    .line 532
    invoke-virtual {p0}, Lorg/zeam/Launcher;->onSearchRequested()Z

    move-result v2

    .line 535
    .end local v0           #gotKey:Z
    :goto_0
    return v2

    :cond_0
    move v2, v1

    goto :goto_0
.end method

.method public onLongClick(Landroid/view/View;)Z
    .locals 4
    .parameter "view"

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 2026
    iget-boolean v1, p0, Lorg/zeam/Launcher;->mDesktopLocked:Z

    if-eqz v1, :cond_0

    move v1, v2

    .line 2048
    :goto_0
    return v1

    .line 2029
    :cond_0
    instance-of v1, p1, Lorg/zeam/CellLayout;

    if-nez v1, :cond_1

    .line 2030
    invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object p1

    .end local p1
    check-cast p1, Landroid/view/View;

    .line 2032
    .restart local p1
    :cond_1
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lorg/zeam/CellLayout$CellInfo;

    .line 2033
    .local v0, cellInfo:Lorg/zeam/CellLayout$CellInfo;
    if-nez v0, :cond_2

    move v1, v3

    .line 2034
    goto :goto_0

    .line 2036
    :cond_2
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v1}, Lorg/zeam/Workspace;->allowLongPress()Z

    move-result v1

    if-eqz v1, :cond_3

    .line 2037
    iget-object v1, v0, Lorg/zeam/CellLayout$CellInfo;->cell:Landroid/view/View;

    if-nez v1, :cond_4

    .line 2038
    iget-boolean v1, v0, Lorg/zeam/CellLayout$CellInfo;->valid:Z

    if-eqz v1, :cond_3

    .line 2039
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v1, v2}, Lorg/zeam/Workspace;->setAllowLongPress(Z)V

    .line 2040
    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->showLauncherDialog(Lorg/zeam/CellLayout$CellInfo;)V

    :cond_3
    :goto_1
    move v1, v3

    .line 2048
    goto :goto_0

    .line 2043
    :cond_4
    iget-object v1, v0, Lorg/zeam/CellLayout$CellInfo;->cell:Landroid/view/View;

    instance-of v1, v1, Lorg/zeam/Folder;

    if-nez v1, :cond_3

    .line 2044
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v1, v0}, Lorg/zeam/Workspace;->startDrag(Lorg/zeam/CellLayout$CellInfo;)V

    goto :goto_1
.end method

.method protected onNewIntent(Landroid/content/Intent;)V
    .locals 7
    .parameter "intent"

    .prologue
    const/high16 v6, 0x40

    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 1023
    invoke-super {p0, p1}, Landroid/app/Activity;->onNewIntent(Landroid/content/Intent;)V

    .line 1024
    const-string v2, "android.intent.action.MAIN"

    invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 1026
    invoke-virtual {p0}, Lorg/zeam/Launcher;->closeSystemDialogs()V

    .line 1027
    iput-boolean v5, p0, Lorg/zeam/Launcher;->mIsNewIntent:Z

    .line 1029
    invoke-virtual {p1}, Landroid/content/Intent;->getFlags()I

    move-result v2

    and-int/2addr v2, v6

    if-eq v2, v6, :cond_3

    .line 1031
    invoke-virtual {p0}, Lorg/zeam/Launcher;->isApplicationsGridOpen()Z

    move-result v2

    if-nez v2, :cond_2

    .line 1032
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getActionBindingForHomeButton(Landroid/content/Context;)I

    move-result v2

    invoke-direct {p0, v2}, Lorg/zeam/Launcher;->performAction(I)V

    .line 1033
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getDockResetHome(Landroid/content/Context;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 1034
    new-instance v2, Lorg/zeam/Launcher$5;

    invoke-direct {v2, p0}, Lorg/zeam/Launcher$5;-><init>(Lorg/zeam/Launcher;)V

    invoke-virtual {p0, v2}, Lorg/zeam/Launcher;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 1045
    :cond_0
    :goto_0
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getWindow()Landroid/view/Window;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/Window;->peekDecorView()Landroid/view/View;

    move-result-object v1

    .line 1046
    .local v1, view:Landroid/view/View;
    if-eqz v1, :cond_1

    invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;

    move-result-object v2

    if-eqz v2, :cond_1

    .line 1048
    const-string v2, "input_method"

    invoke-virtual {p0, v2}, Lorg/zeam/Launcher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    .line 1050
    .local v0, inputMethodManager:Landroid/view/inputmethod/InputMethodManager;
    invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;

    move-result-object v2

    invoke-virtual {v0, v2, v4}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    .line 1056
    .end local v0           #inputMethodManager:Landroid/view/inputmethod/InputMethodManager;
    .end local v1           #view:Landroid/view/View;
    :cond_1
    :goto_1
    return-void

    .line 1043
    :cond_2
    invoke-direct {p0, v5}, Lorg/zeam/Launcher;->closeApplications(Z)V

    goto :goto_0

    .line 1053
    :cond_3
    invoke-direct {p0, v4}, Lorg/zeam/Launcher;->closeApplications(Z)V

    goto :goto_1
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 4
    .parameter "item"

    .prologue
    const/4 v3, 0x1

    .line 1213
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    .line 1241
    :pswitch_0
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->isFullscreenEnabled(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-direct {p0}, Lorg/zeam/Launcher;->isFullscreen()Z

    move-result v1

    if-nez v1, :cond_0

    .line 1242
    const/4 v1, 0x0

    invoke-direct {p0, v3, v1}, Lorg/zeam/Launcher;->setFullscreen(ZZ)V

    .line 1244
    :cond_0
    invoke-super {p0, p1}, Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z

    move-result v1

    :goto_0
    return v1

    .line 1215
    :pswitch_1
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lorg/zeam/Workspace;->findAllVacantCells([Z)Lorg/zeam/CellLayout$CellInfo;

    move-result-object v1

    invoke-direct {p0, v1}, Lorg/zeam/Launcher;->showAddDialog(Lorg/zeam/CellLayout$CellInfo;)V

    move v1, v3

    .line 1216
    goto :goto_0

    .line 1218
    :pswitch_2
    invoke-direct {p0}, Lorg/zeam/Launcher;->startWallpaperChooser()V

    move v1, v3

    .line 1219
    goto :goto_0

    .line 1221
    :pswitch_3
    invoke-virtual {p0}, Lorg/zeam/Launcher;->onSearchRequested()Z

    move v1, v3

    .line 1222
    goto :goto_0

    .line 1224
    :pswitch_4
    iget-boolean v1, p0, Lorg/zeam/Launcher;->mApplicationsGridOpen:Z

    if-eqz v1, :cond_1

    .line 1225
    invoke-direct {p0, v3}, Lorg/zeam/Launcher;->closeApplicationsGrid(Z)V

    :goto_1
    move v1, v3

    .line 1229
    goto :goto_0

    .line 1227
    :cond_1
    invoke-direct {p0, v3}, Lorg/zeam/Launcher;->openApplicationsGrid(Z)V

    goto :goto_1

    .line 1231
    :pswitch_5
    invoke-direct {p0}, Lorg/zeam/Launcher;->startPreferences()V

    move v1, v3

    .line 1232
    goto :goto_0

    .line 1234
    :pswitch_6
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.MANAGE_PACKAGE_STORAGE"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 1235
    .local v0, manageApplications:Landroid/content/Intent;
    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->startActivitySafely(Landroid/content/Intent;)V

    move v1, v3

    .line 1236
    goto :goto_0

    .line 1238
    .end local v0           #manageApplications:Landroid/content/Intent;
    :pswitch_7
    iget-object v1, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    invoke-interface {v1, v3}, Lorg/zeam/ApplicationsView;->setMode(I)V

    move v1, v3

    .line 1239
    goto :goto_0

    .line 1213
    :pswitch_data_0
    .packed-switch 0x2
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_0
        :pswitch_6
        :pswitch_7
    .end packed-switch
.end method

.method protected onPause()V
    .locals 0

    .prologue
    .line 503
    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    .line 504
    return-void
.end method

.method protected onPrepareDialog(ILandroid/app/Dialog;)V
    .locals 4
    .parameter "id"
    .parameter "dialog"

    .prologue
    .line 2080
    packed-switch p1, :pswitch_data_0

    .line 2092
    :cond_0
    :goto_0
    :pswitch_0
    return-void

    .line 2084
    :pswitch_1
    iget-object v2, p0, Lorg/zeam/Launcher;->mFolderInfo:Lorg/zeam/FolderInfo;

    if-eqz v2, :cond_0

    .line 2085
    const v2, 0x7f060024

    invoke-virtual {p2, v2}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    .line 2086
    .local v0, input:Landroid/widget/EditText;
    iget-object v2, p0, Lorg/zeam/Launcher;->mFolderInfo:Lorg/zeam/FolderInfo;

    iget-object v1, v2, Lorg/zeam/FolderInfo;->title:Ljava/lang/CharSequence;

    .line 2087
    .local v1, text:Ljava/lang/CharSequence;
    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 2088
    const/4 v2, 0x0

    invoke-interface {v1}, Ljava/lang/CharSequence;->length()I

    move-result v3

    invoke-virtual {v0, v2, v3}, Landroid/widget/EditText;->setSelection(II)V

    goto :goto_0

    .line 2080
    nop

    :pswitch_data_0
    .packed-switch 0x2
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public onPrepareOptionsMenu(Landroid/view/Menu;)Z
    .locals 5
    .parameter "menu"

    .prologue
    const/4 v4, 0x3

    const/4 v1, 0x2

    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 1191
    invoke-super {p0, p1}, Landroid/app/Activity;->onPrepareOptionsMenu(Landroid/view/Menu;)Z

    .line 1193
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mApplicationsGridOpen:Z

    if-eqz v0, :cond_0

    .line 1195
    invoke-interface {p1, v2, v3}, Landroid/view/Menu;->setGroupVisible(IZ)V

    .line 1196
    invoke-interface {p1, v1, v3}, Landroid/view/Menu;->setGroupVisible(IZ)V

    .line 1197
    invoke-interface {p1, v4, v2}, Landroid/view/Menu;->setGroupVisible(IZ)V

    .line 1204
    :goto_0
    invoke-direct {p0, v3, v3}, Lorg/zeam/Launcher;->setFullscreen(ZZ)V

    .line 1205
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lorg/zeam/Workspace;->findAllVacantCells([Z)Lorg/zeam/CellLayout$CellInfo;

    move-result-object v0

    iput-object v0, p0, Lorg/zeam/Launcher;->mMenuAddInfo:Lorg/zeam/CellLayout$CellInfo;

    .line 1206
    iget-object v0, p0, Lorg/zeam/Launcher;->mMenuAddInfo:Lorg/zeam/CellLayout$CellInfo;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lorg/zeam/Launcher;->mMenuAddInfo:Lorg/zeam/CellLayout$CellInfo;

    iget-boolean v0, v0, Lorg/zeam/CellLayout$CellInfo;->valid:Z

    if-eqz v0, :cond_1

    move v0, v2

    :goto_1
    invoke-interface {p1, v2, v0}, Landroid/view/Menu;->setGroupEnabled(IZ)V

    .line 1207
    return v2

    .line 1199
    :cond_0
    invoke-interface {p1, v2, v2}, Landroid/view/Menu;->setGroupVisible(IZ)V

    .line 1200
    invoke-interface {p1, v1, v2}, Landroid/view/Menu;->setGroupVisible(IZ)V

    .line 1201
    invoke-interface {p1, v4, v3}, Landroid/view/Menu;->setGroupVisible(IZ)V

    goto :goto_0

    :cond_1
    move v0, v3

    .line 1206
    goto :goto_1
.end method

.method protected onRestoreInstanceState(Landroid/os/Bundle;)V
    .locals 5
    .parameter "savedInstanceState"

    .prologue
    .line 1061
    const-string v3, "android:viewHierarchyState"

    invoke-virtual {p1, v3}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v2

    .line 1062
    .local v2, windowState:Landroid/os/Bundle;
    const/4 v1, 0x0

    .line 1063
    .local v1, savedStates:Landroid/util/SparseArray;,"Landroid/util/SparseArray<Landroid/os/Parcelable;>;"
    const/4 v0, -0x1

    .line 1065
    .local v0, focusedViewId:I
    if-eqz v2, :cond_0

    .line 1066
    const-string v3, "android:views"

    invoke-virtual {v2, v3}, Landroid/os/Bundle;->getSparseParcelableArray(Ljava/lang/String;)Landroid/util/SparseArray;

    move-result-object v1

    .line 1067
    const-string v3, "android:views"

    invoke-virtual {v2, v3}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V

    .line 1068
    const-string v3, "android:focusedViewId"

    const/4 v4, -0x1

    invoke-virtual {v2, v3, v4}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v0

    .line 1069
    const-string v3, "android:focusedViewId"

    invoke-virtual {v2, v3}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V

    .line 1071
    :cond_0
    invoke-super {p0, p1}, Landroid/app/Activity;->onRestoreInstanceState(Landroid/os/Bundle;)V

    .line 1073
    if-eqz v2, :cond_1

    .line 1074
    const-string v3, "android:views"

    invoke-virtual {v2, v3, v1}, Landroid/os/Bundle;->putSparseParcelableArray(Ljava/lang/String;Landroid/util/SparseArray;)V

    .line 1075
    const-string v3, "android:focusedViewId"

    invoke-virtual {v2, v3, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 1076
    const-string v3, "android:Panels"

    invoke-virtual {v2, v3}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V

    .line 1078
    :cond_1
    iput-object p1, p0, Lorg/zeam/Launcher;->mSavedInstanceState:Landroid/os/Bundle;

    .line 1079
    return-void
.end method

.method protected onResume()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 454
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 455
    sget-boolean v2, Lorg/zeam/Launcher;->sRestart:Z

    if-eqz v2, :cond_0

    .line 456
    invoke-static {p0}, Lorg/zeam/Preferences;->alertRestart(Landroid/content/Context;)V

    .line 458
    :cond_0
    invoke-direct {p0}, Lorg/zeam/Launcher;->loadPreferences()V

    .line 460
    iget v1, p0, Lorg/zeam/Launcher;->mRotation:I

    .line 462
    .local v1, rotation:I
    iget-object v2, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    instance-of v2, v2, Lorg/zeam/ApplicationsGridView;

    if-eqz v2, :cond_5

    .line 463
    if-nez v1, :cond_4

    .line 464
    iget-object v2, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridVerticalScrollingContentColumnsPortrait(Landroid/content/Context;)I

    move-result v3

    invoke-interface {v2, v3}, Lorg/zeam/ApplicationsView;->setNumColumns(I)V

    .line 479
    :cond_1
    :goto_0
    iget-object v2, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridBackgroundAlpha(Landroid/content/Context;)I

    move-result v3

    invoke-interface {v2, v3}, Lorg/zeam/ApplicationsView;->setBackgroundAlpha(I)V

    .line 480
    iget-object v2, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v2, v4}, Lorg/zeam/Workspace;->setWallpaper(Z)V

    .line 482
    iget-boolean v2, p0, Lorg/zeam/Launcher;->mRestoring:Z

    if-eqz v2, :cond_2

    .line 483
    invoke-direct {p0}, Lorg/zeam/Launcher;->startLoaders()V

    .line 485
    :cond_2
    iget-boolean v2, p0, Lorg/zeam/Launcher;->mIsNewIntent:Z

    if-eqz v2, :cond_3

    .line 486
    iget-object v2, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    new-instance v3, Lorg/zeam/Launcher$1;

    invoke-direct {v3, p0}, Lorg/zeam/Launcher$1;-><init>(Lorg/zeam/Launcher;)V

    invoke-virtual {v2, v3}, Lorg/zeam/Workspace;->post(Ljava/lang/Runnable;)Z

    .line 498
    :cond_3
    iput-boolean v4, p0, Lorg/zeam/Launcher;->mIsNewIntent:Z

    .line 499
    return-void

    .line 466
    :cond_4
    iget-object v2, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridVerticalScrollingContentColumnsLandscape(Landroid/content/Context;)I

    move-result v3

    invoke-interface {v2, v3}, Lorg/zeam/ApplicationsView;->setNumColumns(I)V

    goto :goto_0

    .line 468
    :cond_5
    iget-object v2, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    instance-of v2, v2, Lorg/zeam/ApplicationsPagingView;

    if-eqz v2, :cond_1

    .line 470
    iget-object v0, p0, Lorg/zeam/Launcher;->mApplicationsView:Lorg/zeam/ApplicationsView;

    check-cast v0, Lorg/zeam/ApplicationsPagingView;

    .line 471
    .local v0, applicationsPagingView:Lorg/zeam/ApplicationsPagingView;
    if-nez v1, :cond_6

    .line 472
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridHorizontalPagingContentRowsPortrait(Landroid/content/Context;)I

    move-result v2

    invoke-virtual {v0, v2}, Lorg/zeam/ApplicationsPagingView;->setNumRows(I)V

    .line 473
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridHorizontalPagingContentColumnsPortrait(Landroid/content/Context;)I

    move-result v2

    invoke-virtual {v0, v2}, Lorg/zeam/ApplicationsPagingView;->setNumColumns(I)V

    goto :goto_0

    .line 475
    :cond_6
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridHorizontalPagingContentRowsLandscape(Landroid/content/Context;)I

    move-result v2

    invoke-virtual {v0, v2}, Lorg/zeam/ApplicationsPagingView;->setNumRows(I)V

    .line 476
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridHorizontalPagingContentColumnsLandscape(Landroid/content/Context;)I

    move-result v2

    invoke-virtual {v0, v2}, Lorg/zeam/ApplicationsPagingView;->setNumColumns(I)V

    goto :goto_0
.end method

.method public onRetainNonConfigurationInstance()Ljava/lang/Object;
    .locals 2

    .prologue
    .line 509
    iget-object v0, p0, Lorg/zeam/Launcher;->mBinder:Lorg/zeam/Launcher$DesktopBinder;

    if-eqz v0, :cond_0

    .line 510
    iget-object v0, p0, Lorg/zeam/Launcher;->mBinder:Lorg/zeam/Launcher$DesktopBinder;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lorg/zeam/Launcher$DesktopBinder;->mTerminate:Z

    .line 512
    :cond_0
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mSetPersistent:Z

    if-eqz v0, :cond_1

    .line 513
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->setPersistent(Z)V

    .line 518
    :cond_1
    const/4 v0, 0x0

    return-object v0
.end method

.method protected onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 11
    .parameter "outState"

    .prologue
    const/4 v10, 0x1

    .line 1084
    invoke-virtual {p0}, Lorg/zeam/Launcher;->closeOptionsMenu()V

    .line 1085
    invoke-super {p0, p1}, Landroid/app/Activity;->onSaveInstanceState(Landroid/os/Bundle;)V

    .line 1086
    const-string v8, "launcher.current_screen"

    iget-object v9, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v9}, Lorg/zeam/Workspace;->getCurrentScreen()I

    move-result v9

    invoke-virtual {p1, v8, v9}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 1088
    iget-object v8, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v8}, Lorg/zeam/Workspace;->getOpenFolders()Ljava/util/ArrayList;

    move-result-object v2

    .line 1089
    .local v2, folders:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lorg/zeam/Folder;>;"
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v8

    if-lez v8, :cond_0

    .line 1090
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v1

    .line 1091
    .local v1, count:I
    new-array v4, v1, [J

    .line 1092
    .local v4, ids:[J
    const/4 v3, 0x0

    .local v3, i:I
    :goto_0
    if-lt v3, v1, :cond_4

    .line 1096
    const-string v8, "launcher.user_folder"

    invoke-virtual {p1, v8, v4}, Landroid/os/Bundle;->putLongArray(Ljava/lang/String;[J)V

    .line 1098
    .end local v1           #count:I
    .end local v3           #i:I
    .end local v4           #ids:[J
    :cond_0
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getChangingConfigurations()I

    move-result v8

    if-eqz v8, :cond_5

    move v6, v10

    .line 1100
    .local v6, isConfigurationChange:Z
    :goto_1
    iget-boolean v8, p0, Lorg/zeam/Launcher;->mApplicationsGridOpen:Z

    if-eqz v8, :cond_1

    if-eqz v6, :cond_1

    .line 1101
    const-string v8, "launcher.all_apps_folder"

    invoke-virtual {p1, v8, v10}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 1103
    :cond_1
    iget-object v8, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    if-eqz v8, :cond_2

    iget-object v8, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    iget-boolean v8, v8, Lorg/zeam/CellLayout$CellInfo;->valid:Z

    if-eqz v8, :cond_2

    iget-boolean v8, p0, Lorg/zeam/Launcher;->mWaitingForResult:Z

    if-eqz v8, :cond_2

    .line 1105
    iget-object v0, p0, Lorg/zeam/Launcher;->mAddItemCellInfo:Lorg/zeam/CellLayout$CellInfo;

    .line 1106
    .local v0, addItemCellInfo:Lorg/zeam/CellLayout$CellInfo;
    iget-object v8, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    iget v9, v0, Lorg/zeam/CellLayout$CellInfo;->screen:I

    invoke-virtual {v8, v9}, Lorg/zeam/Workspace;->getChildAt(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Lorg/zeam/CellLayout;

    .line 1108
    .local v7, layout:Lorg/zeam/CellLayout;
    const-string v8, "launcher.add_screen"

    iget v9, v0, Lorg/zeam/CellLayout$CellInfo;->screen:I

    invoke-virtual {p1, v8, v9}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 1109
    const-string v8, "launcher.add_cellX"

    iget v9, v0, Lorg/zeam/CellLayout$CellInfo;->cellX:I

    invoke-virtual {p1, v8, v9}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 1110
    const-string v8, "launcher.add_cellY"

    iget v9, v0, Lorg/zeam/CellLayout$CellInfo;->cellY:I

    invoke-virtual {p1, v8, v9}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 1111
    const-string v8, "launcher.add_spanX"

    iget v9, v0, Lorg/zeam/CellLayout$CellInfo;->spanX:I

    invoke-virtual {p1, v8, v9}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 1112
    const-string v8, "launcher.add_spanY"

    iget v9, v0, Lorg/zeam/CellLayout$CellInfo;->spanY:I

    invoke-virtual {p1, v8, v9}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 1113
    const-string v8, "launcher.add_countX"

    invoke-virtual {v7}, Lorg/zeam/CellLayout;->getCountX()I

    move-result v9

    invoke-virtual {p1, v8, v9}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 1114
    const-string v8, "launcher.add_countY"

    invoke-virtual {v7}, Lorg/zeam/CellLayout;->getCountY()I

    move-result v9

    invoke-virtual {p1, v8, v9}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 1115
    const-string v8, "launcher.add_occupied_cells"

    invoke-virtual {v7}, Lorg/zeam/CellLayout;->getOccupiedCells()[Z

    move-result-object v9

    invoke-virtual {p1, v8, v9}, Landroid/os/Bundle;->putBooleanArray(Ljava/lang/String;[Z)V

    .line 1118
    .end local v0           #addItemCellInfo:Lorg/zeam/CellLayout$CellInfo;
    .end local v7           #layout:Lorg/zeam/CellLayout;
    :cond_2
    iget-object v8, p0, Lorg/zeam/Launcher;->mFolderInfo:Lorg/zeam/FolderInfo;

    if-eqz v8, :cond_3

    iget-boolean v8, p0, Lorg/zeam/Launcher;->mWaitingForResult:Z

    if-eqz v8, :cond_3

    .line 1119
    const-string v8, "launcher.rename_folder"

    invoke-virtual {p1, v8, v10}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 1120
    const-string v8, "launcher.rename_folder_id"

    iget-object v9, p0, Lorg/zeam/Launcher;->mFolderInfo:Lorg/zeam/FolderInfo;

    iget-wide v9, v9, Lorg/zeam/FolderInfo;->id:J

    invoke-virtual {p1, v8, v9, v10}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V

    .line 1122
    :cond_3
    return-void

    .line 1093
    .end local v6           #isConfigurationChange:Z
    .restart local v1       #count:I
    .restart local v3       #i:I
    .restart local v4       #ids:[J
    :cond_4
    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lorg/zeam/Folder;

    invoke-virtual {v8}, Lorg/zeam/Folder;->getInfo()Lorg/zeam/FolderInfo;

    move-result-object v5

    .line 1094
    .local v5, info:Lorg/zeam/FolderInfo;
    iget-wide v8, v5, Lorg/zeam/FolderInfo;->id:J

    aput-wide v8, v4, v3

    .line 1092
    add-int/lit8 v3, v3, 0x1

    goto/16 :goto_0

    .line 1098
    .end local v1           #count:I
    .end local v3           #i:I
    .end local v4           #ids:[J
    .end local v5           #info:Lorg/zeam/FolderInfo;
    :cond_5
    const/4 v8, 0x0

    move v6, v8

    goto/16 :goto_1
.end method

.method public onSearchRequested()Z
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 1267
    const/4 v0, 0x0

    invoke-virtual {p0, v2, v0, v2, v1}, Lorg/zeam/Launcher;->startSearch(Ljava/lang/String;ZLandroid/os/Bundle;Z)V

    .line 1268
    return v1
.end method

.method protected onStart()V
    .locals 1

    .prologue
    .line 2861
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mSetPersistent:Z

    if-eqz v0, :cond_0

    .line 2862
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->setPersistent(Z)V

    .line 2864
    :cond_0
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 2865
    return-void
.end method

.method protected onStop()V
    .locals 1

    .prologue
    .line 2870
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mShouldRestart:Z

    if-nez v0, :cond_0

    .line 2871
    iget-boolean v0, p0, Lorg/zeam/Launcher;->mSetPersistent:Z

    if-eqz v0, :cond_0

    .line 2872
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->setPersistent(Z)V

    .line 2875
    :cond_0
    invoke-super {p0}, Landroid/app/Activity;->onStop()V

    .line 2876
    return-void
.end method

.method public onWindowFocusChanged(Z)V
    .locals 0
    .parameter "hasFocus"

    .prologue
    .line 2656
    invoke-super {p0, p1}, Landroid/app/Activity;->onWindowFocusChanged(Z)V

    .line 2657
    if-eqz p1, :cond_0

    .line 2658
    invoke-direct {p0}, Lorg/zeam/Launcher;->setRequestedFullscreen()V

    .line 2660
    :cond_0
    return-void
.end method

.method public previousScreen(Landroid/view/View;)V
    .locals 1
    .parameter "v"

    .prologue
    .line 2612
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->scrollLeft()V

    .line 2613
    return-void
.end method

.method processShortcut(Landroid/content/Intent;II)V
    .locals 6
    .parameter "intent"
    .parameter "requestCodeApplication"
    .parameter "requestCodeShortcut"

    .prologue
    .line 1385
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f0a005b

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 1386
    .local v0, applicationName:Ljava/lang/String;
    const-string v4, "android.intent.extra.shortcut.NAME"

    invoke-virtual {p1, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 1388
    .local v3, shortcutName:Ljava/lang/String;
    if-eqz v0, :cond_0

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 1390
    new-instance v1, Landroid/content/Intent;

    const-string v4, "android.intent.action.MAIN"

    const/4 v5, 0x0

    invoke-direct {v1, v4, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 1391
    .local v1, mainIntent:Landroid/content/Intent;
    new-instance v2, Landroid/content/Intent;

    const-string v4, "android.intent.action.PICK_ACTIVITY"

    invoke-direct {v2, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 1393
    .local v2, pickIntent:Landroid/content/Intent;
    const-string v4, "android.intent.category.LAUNCHER"

    invoke-virtual {v1, v4}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    .line 1394
    const-string v4, "android.intent.extra.INTENT"

    invoke-virtual {v2, v4, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 1395
    invoke-virtual {p0, v2, p2}, Lorg/zeam/Launcher;->startActivityForResult(Landroid/content/Intent;I)V

    .line 1400
    .end local v1           #mainIntent:Landroid/content/Intent;
    .end local v2           #pickIntent:Landroid/content/Intent;
    :goto_0
    return-void

    .line 1398
    :cond_0
    invoke-virtual {p0, p1, p3}, Lorg/zeam/Launcher;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0
.end method

.method public setWindowBackground(Z)V
    .locals 3
    .parameter "liveWallpaper"

    .prologue
    .line 2748
    if-nez p1, :cond_0

    .line 2749
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getWindow()Landroid/view/Window;

    move-result-object v0

    new-instance v1, Landroid/graphics/drawable/ColorDrawable;

    const/high16 v2, -0x100

    invoke-direct {v1, v2}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v0, v1}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 2753
    :goto_0
    return-void

    .line 2751
    :cond_0
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getWindow()Landroid/view/Window;

    move-result-object v0

    new-instance v1, Landroid/graphics/drawable/ColorDrawable;

    const/4 v2, 0x0

    invoke-direct {v1, v2}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v0, v1}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0
.end method

.method public showPreviews(II)V
    .locals 2
    .parameter "start"
    .parameter "end"

    .prologue
    const/4 v1, 0x1

    .line 2648
    iput-boolean v1, p0, Lorg/zeam/Launcher;->mPreviewsShowing:Z

    .line 2649
    invoke-direct {p0, v1}, Lorg/zeam/Launcher;->hideDesktop(Z)V

    .line 2650
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0}, Lorg/zeam/Workspace;->lock()V

    .line 2651
    iget-object v0, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v0, v1}, Lorg/zeam/Workspace;->togglePreviews(Z)V

    .line 2652
    return-void
.end method

.method showRenameDialog(Lorg/zeam/FolderInfo;)V
    .locals 1
    .parameter "info"

    .prologue
    .line 2096
    iput-object p1, p0, Lorg/zeam/Launcher;->mFolderInfo:Lorg/zeam/FolderInfo;

    .line 2097
    const/4 v0, 0x1

    iput-boolean v0, p0, Lorg/zeam/Launcher;->mWaitingForResult:Z

    .line 2098
    const/4 v0, 0x3

    invoke-virtual {p0, v0}, Lorg/zeam/Launcher;->showDialog(I)V

    .line 2099
    return-void
.end method

.method showSearchDialog(Ljava/lang/String;ZLandroid/os/Bundle;Z)V
    .locals 7
    .parameter "initialQuery"
    .parameter "selectInitialQuery"
    .parameter "appSearchData"
    .parameter "globalSearch"

    .prologue
    .line 1286
    if-nez p1, :cond_0

    .line 1287
    invoke-direct {p0}, Lorg/zeam/Launcher;->getTypedText()Ljava/lang/String;

    move-result-object p1

    .line 1288
    invoke-direct {p0}, Lorg/zeam/Launcher;->clearTypedText()V

    .line 1290
    :cond_0
    if-nez p3, :cond_1

    .line 1291
    new-instance p3, Landroid/os/Bundle;

    .end local p3
    invoke-direct {p3}, Landroid/os/Bundle;-><init>()V

    .line 1292
    .restart local p3
    const-string v1, "source"

    const-string v2, "launcher-search"

    invoke-virtual {p3, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 1294
    :cond_1
    const-string v1, "search"

    invoke-virtual {p0, v1}, Lorg/zeam/Launcher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/SearchManager;

    .line 1295
    .local v0, searchManager:Landroid/app/SearchManager;
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v1}, Lorg/zeam/Workspace;->findSearchWidgetOnCurrentScreen()Lorg/zeam/Search;

    move-result-object v6

    .line 1296
    .local v6, searchWidget:Lorg/zeam/Search;
    if-eqz v6, :cond_2

    .line 1298
    new-instance v1, Lorg/zeam/Launcher$6;

    invoke-direct {v1, p0, v0}, Lorg/zeam/Launcher$6;-><init>(Lorg/zeam/Launcher;Landroid/app/SearchManager;)V

    invoke-virtual {v0, v1}, Landroid/app/SearchManager;->setOnCancelListener(Landroid/app/SearchManager$OnCancelListener;)V

    .line 1306
    :cond_2
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getComponentName()Landroid/content/ComponentName;

    move-result-object v3

    move-object v1, p1

    move v2, p2

    move-object v4, p3

    move v5, p4

    invoke-virtual/range {v0 .. v5}, Landroid/app/SearchManager;->startSearch(Ljava/lang/String;ZLandroid/content/ComponentName;Landroid/os/Bundle;Z)V

    .line 1307
    return-void
.end method

.method public startActivityForResult(Landroid/content/Intent;I)V
    .locals 1
    .parameter "intent"
    .parameter "requestCode"

    .prologue
    .line 1149
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lorg/zeam/Launcher;->closeApplications(Z)V

    .line 1150
    if-ltz p2, :cond_0

    .line 1151
    const/4 v0, 0x1

    iput-boolean v0, p0, Lorg/zeam/Launcher;->mWaitingForResult:Z

    .line 1153
    :cond_0
    invoke-super {p0, p1, p2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 1154
    return-void
.end method

.method startActivitySafely(Landroid/content/Intent;)V
    .locals 5
    .parameter "intent"

    .prologue
    const v4, 0x7f0a0050

    const/4 v3, 0x0

    .line 1955
    if-nez p1, :cond_0

    .line 1956
    invoke-static {p0, v4, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    .line 1970
    :goto_0
    return-void

    .line 1959
    :cond_0
    const/high16 v2, 0x1000

    invoke-virtual {p1, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 1961
    :try_start_0
    invoke-virtual {p0, p1}, Lorg/zeam/Launcher;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_1

    goto :goto_0

    .line 1962
    :catch_0
    move-exception v0

    .line 1963
    .local v0, anfe:Landroid/content/ActivityNotFoundException;
    invoke-static {p0, v4, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 1964
    .end local v0           #anfe:Landroid/content/ActivityNotFoundException;
    :catch_1
    move-exception v1

    .line 1965
    .local v1, se:Ljava/lang/SecurityException;
    invoke-static {p0, v4, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    .line 1966
    sget-object v2, Lorg/zeam/Launcher;->LOG_TAG:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "Launcher does not have the permission to launch "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 1967
    const-string v4, ". Make sure to create a MAIN intent-filter for the corresponding activity "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 1968
    const-string v4, "or use the exported attribute for this activity."

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 1966
    invoke-static {v2, v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0
.end method

.method public startSearch(Ljava/lang/String;ZLandroid/os/Bundle;Z)V
    .locals 2
    .parameter "initialQuery"
    .parameter "selectInitialQuery"
    .parameter "appSearchData"
    .parameter "globalSearch"

    .prologue
    .line 1274
    invoke-virtual {p0}, Lorg/zeam/Launcher;->closeAllApplications()V

    .line 1275
    iget-object v1, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v1}, Lorg/zeam/Workspace;->findSearchWidgetOnCurrentScreen()Lorg/zeam/Search;

    move-result-object v0

    .line 1276
    .local v0, searchWidget:Lorg/zeam/Search;
    if-nez v0, :cond_0

    .line 1277
    invoke-virtual {p0, p1, p2, p3, p4}, Lorg/zeam/Launcher;->showSearchDialog(Ljava/lang/String;ZLandroid/os/Bundle;Z)V

    .line 1282
    :goto_0
    return-void

    .line 1279
    :cond_0
    invoke-virtual {v0, p1, p2, p3, p4}, Lorg/zeam/Search;->startSearch(Ljava/lang/String;ZLandroid/os/Bundle;Z)V

    .line 1280
    invoke-direct {p0}, Lorg/zeam/Launcher;->getTypedText()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lorg/zeam/Search;->setQuery(Ljava/lang/String;)V

    goto :goto_0
.end method

.method stopSearch()V
    .locals 3

    .prologue
    .line 1311
    const-string v2, "search"

    invoke-virtual {p0, v2}, Lorg/zeam/Launcher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/SearchManager;

    .line 1312
    .local v0, searchManager:Landroid/app/SearchManager;
    invoke-virtual {v0}, Landroid/app/SearchManager;->stopSearch()V

    .line 1314
    iget-object v2, p0, Lorg/zeam/Launcher;->mWorkspace:Lorg/zeam/Workspace;

    invoke-virtual {v2}, Lorg/zeam/Workspace;->findSearchWidgetOnCurrentScreen()Lorg/zeam/Search;

    move-result-object v1

    .line 1315
    .local v1, searchWidget:Lorg/zeam/Search;
    if-eqz v1, :cond_0

    .line 1316
    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lorg/zeam/Search;->stopSearch(Z)V

    .line 1318
    :cond_0
    return-void
.end method

.method uninstallApplication(Lorg/zeam/ApplicationItemInfo;)V
    .locals 8
    .parameter "applicationItemInfo"

    .prologue
    .line 1249
    invoke-virtual {p0}, Lorg/zeam/Launcher;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    .line 1250
    .local v2, packageManager:Landroid/content/pm/PackageManager;
    iget-object v6, p1, Lorg/zeam/ApplicationItemInfo;->intent:Landroid/content/Intent;

    const/4 v7, 0x0

    invoke-virtual {v2, v6, v7}, Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;

    move-result-object v5

    .line 1251
    .local v5, resolveInfo:Landroid/content/pm/ResolveInfo;
    if-eqz v5, :cond_0

    .line 1252
    iget-object v0, v5, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    .line 1253
    .local v0, activityInfo:Landroid/content/pm/ActivityInfo;
    if-eqz v0, :cond_1

    .line 1255
    iget-object v6, v5, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v3, v6, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    .line 1256
    .local v3, packageName:Ljava/lang/String;
    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "package:"

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v4

    .line 1257
    .local v4, packageUri:Landroid/net/Uri;
    new-instance v1, Landroid/content/Intent;

    const-string v6, "android.intent.action.DELETE"

    invoke-direct {v1, v6, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 1258
    .local v1, intent:Landroid/content/Intent;
    invoke-virtual {p0, v1}, Lorg/zeam/Launcher;->startActivity(Landroid/content/Intent;)V

    .line 1263
    .end local v0           #activityInfo:Landroid/content/pm/ActivityInfo;
    .end local v1           #intent:Landroid/content/Intent;
    .end local v3           #packageName:Ljava/lang/String;
    .end local v4           #packageUri:Landroid/net/Uri;
    :cond_0
    :goto_0
    return-void

    .line 1260
    .restart local v0       #activityInfo:Landroid/content/pm/ActivityInfo;
    :cond_1
    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "Unable to find ActivityInfo for "

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v7, p1, Lorg/zeam/ApplicationItemInfo;->title:Ljava/lang/CharSequence;

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    const/4 v7, 0x1

    invoke-static {p0, v6, v7}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v6

    invoke-virtual {v6}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method
